Microsoft Office

Microsoft Office Questions? Ask a IT Expert for Support ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Microsoft Office
This answer was rated:

I have an Access database I created years ago. In order to

improve it, I would like...
I have an Access database I created years ago. In order to improve it, I would like to establish some composite primary keys rather than continue using the existing primary key, which right now is an automatically generated number field. When I try to create the composite key, it says I need to remove some relationships that exist with other tables. I'm not sure what this would mean. I suspect I need to remove the existing primary key, but fear I would mess up my existing database by doing that. One example of some related tables I have are Invoice, Jobs and Vendors. When I enter data into an invoice form, I'd like a composite primary key that would include Job, Vendor, Invoice Number and Date. The Date and Invoice Number are a field in the Invoice table. The Job and Vendor are linked to the Job and Vendor tables. By establishing the composite primary key, I could have an invoice from a vendor that had items for more than one job on it, so I could have duplicates of the invoice number on invoice records, and a unique value in the job field would separate it.

I hope I'm being clear here. I'd appreciate any help you could give me.
Show More
Show Less
Ask Your Own Microsoft Office Question
Answered in 52 minutes by:
10/26/2011
Chris L.
Chris L., Support Specialist
Category: Microsoft Office
Satisfied Customers: 5,350
Experience: Certified Expert with over 10 years experience.
Verified
Hello and thank you for using Just Answer.

I believe I understand what you are trying to do, it is a little difficult without actually seeing the database.

Before you start working with the instructions I am about to give, please make a backup/copy of your database.

You should perform the instructions on your copy of the database that way nothing accidentally goes wrong with you main database.

Again perform the following on a copy of your database.


Before you can remove a primary key, you must make sure that it doesn't participate in any table relationships. If you try to remove a primary key for which a relationship exist, Access warns you that you must delete the relationship first.

If the tables that participate in the table relationship are open, close them. You cannot delete a table relationship between open tables.
On the Database Tools tab, in the Show/Hide group, click Relationships.

If the tables that participate in the table relationship are not visible, on the Design tab, in the Relationships group, click Show Table. Then select the tables to add in the Show Table dialog box, click Add, and then click Close.

Click the table relationship line for the table relationship that you want to delete (the line appears bold when it is selected), and then press the DELETE key.
On the Design tab, in the Relationships group, click Close.

In the Navigation Pane, right-click the table from which you want to remove the primary key and then click Design View on the shortcut menu.
Select the current primary key field.

If the primary key consists of multiple fields, click the row selector for any field in the primary key.
On the Design tab, in the Tools group, click Primary Key.

The key indicator is removed from the field or fields that you previously specified as the primary key.

Please Note: When you save a new table without setting a primary key, Access prompts you to create one. If you choose Yes, an ID field is created that uses the AutoNumber data type to provide a unique value for each record. If your table already includes a AutoNumber field, Access uses that field as the primary key.

Select the field or fields that you want to use as the primary key.
To select more than one field, hold down CTRL while you click the fields.

On the Design tab, in the Tools group, click Primary Key.
A key indicator appears to the left of the field or fields that you specify as the primary key.

Press CTRL+S to save your table design changes.

If this does not help or is not what you are looking for please reply and let me know, otherwise please click the accept button.

Thank You
Ask Your Own Microsoft Office Question
Customer reply replied 6 years ago
I understand your instructions. What I'm not sure of is whether or not the relationships between tables will re-establish themselves using the new composite primary key after I set them up. I would like to be able to query the database and have access to all the records I've entered under the old primary key.
You will need to reestablish the relationships/querys after changing the primary key. Im on a train right now so if you can give me a little time I will respond further.
Thanks I will be back online in a few hours
Ask Your Own Microsoft Office Question
Ok I thought about this a bit more.

What I would suggest you try on your testing(copy) of the database if to either, remove the relationships and try and create the composite keys In table design mode, select first key field, hold the control key and select the second key field etc... With fields selected, click the key icon to add a key.

Hope this helps.
Chris L.
Chris L., Support Specialist
Category: Microsoft Office
Satisfied Customers: 5,350
Experience: Certified Expert with over 10 years experience.
Verified
Chris L. and 87 other Microsoft Office Specialists are ready to help you
Ask your own question now
Customer reply replied 6 years ago

I will try your suggestion. It may take me a day or so as I'm busy right now, but I'll get back to you as soon as I determine if this works.

 

Thanks.

No problem take your time and good luck.
Ask Your Own Microsoft Office Question
Customer reply replied 6 years ago

I'm sorry it's taken me a while to follow through on this issue. Turns out it is more involved than just manipulating relationships and keys. I have some blank fields in a lot of the records that already exist and before I can set those fields as primary keys, I need to either delete those records or fill those fields. So, I have some work to do before I can fully deploy the fix. However, I believe I'm on the right track and will accept your answer and then probably get back to you for more guidance.

 

Thanks

Ask Chris L. Your Own Question
Chris L.
Chris L.
Chris L., Support Specialist
Category: Microsoft Office
Satisfied Customers: 5,350
5,350 Satisfied Customers
Experience: Certified Expert with over 10 years experience.

Chris L. is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

jstinehelfer

jstinehelfer

Information Systems Manager

36 satisfied customers

A+ Comptia Certified computer repair

JasonJames122

JasonJames122

Computer Enthusiast

0 satisfied customers

I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business

Jess M.

Jess M.

Computer Support Specialist

701 satisfied customers

Computer Software Specialist for more than 10 years

The-PC-Guy

The-PC-Guy

Computer Manager

588 satisfied customers

20 years experience providing remote computer support

James K.

James K.

Consultant

260 satisfied customers

Technical Director of IT Company

IT Miro

IT Miro

Computer Scientist

157 satisfied customers

Bachelor's Degree in Information Technology, Microsoft Certified Professional

Chris L.

Chris L.

Support Specialist

5,350 satisfied customers

Certified Expert with over 10 years experience.

< Previous | Next >

Related Microsoft Office Questions
I have upgraded to Windows 10 and now I can not open some
I have upgraded to Windows 10 and now I can not open some files in Word. It says it can not be found on server, but shows up in file search … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,282 satisfied customers
I mistakenly ordered a second copy of Microsoft Office 365
I mistakenly ordered a second copy of Microsoft Office 365 on 1/15/18 after ordering an initial purchase on 9/2/17. … read more
Josh
Josh
It Support Specialist
Associate Degree
5,140 satisfied customers
How do I set if I want two columns of names? I really don't
I really don't know. I have been assigned to do a church bulletin and there are two columns of names. I'm sorry to be so stupid. … read more
Jason Jones
Jason Jones
AAS Information Technology
6,320 satisfied customers
One of my two controlers connects ok, but the other does
One of my two controlers connects ok, but the other does not. … read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
I need to learn how to correct spell check on my computer. I
I need to learn how to correct spell check on my computer. I use Office 365 Personel … read more
Mr.Med
Mr.Med
946 satisfied customers
I HAVE TRIED OVER TEN TIMES TO ACCESS MNY MICROSOFT ACCOUNT
I HAVE TRIED OVER TEN TIMES TO ACCESS MNY MICROSOFT ACCOUNT SO i CAN BUY OFFICE WORD. i AM SO FRISTRATED BECAUSE EACH TIME i TRY IT RESULTS IN ME RETRYOING OVER AND OVER CSAN MY OLD ACCOUNT BE DISCONT… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
Publisher stopped letting me save files as jpg. there is no
Publisher stopped letting me save files as jpg. there is no data in the jpg file. It will save as a pdf and gif but not jpg or png. Just started happening. … read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
I paid tech soup 40 dollars for a new replacement for word
I paid tech soup 40 dollars for a new replacement for word and it was to be sent online. a ms partner fo a long time under***@******.*** zzzzzzzzzzzzzzi think zI saw iton my[aptop and tried to downloa… read more
Viet - Computer Tech
Viet - Computer Tech
Computer Technican
Bachelor\u0027s Degree
953 satisfied customers
I am unable to get into my account, with TD. It is through
Hi I am unable to get into my account, with TD. It is through water house. It seems the computer is stuck on easy web. Every time I put on the computer TD pops up. Yet I can not get into my account. But I can do it at someone else's computer. It keeps saying I am all ready registered for easy web banking. There also telling me since it appears that you are currently registered, you should be able to log in and view. Please click easy web to access your account. I tried many times and I cannot get into my account. I would appreciate the help Thank You … read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
I'm a time user of Word -- Now using Word 2007. However,
I'm a long time user of Word -- Now using Word 2007. However, there is something I cannot determine how to do. That is, I need to remove the signature "block" which appears when a signature line is pl… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
How can I open and then close a document without exiting
How can I open and then close a document without exiting word so that I can quickly open the next document? … read more
Viet - Computer Tech
Viet - Computer Tech
Computer Technican
Bachelor\u0027s Degree
953 satisfied customers
I just downloaded Microsoft office last week and the program
I just downloaded Microsoft office last week and the program says there is a problem and is recommending I load the program again. … read more
Cody
Cody
Computer Science
1,723 satisfied customers
I have Microsoft Office installed on my laptop. However,
I have Microsoft Office installed on my laptop. However, when I try to download a Word format attachment from an email I recieve … read more
Kamil Anwar
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
435 satisfied customers
I have just had to reload /restore my Windows software as my
Hi, I have just had to reload /restore my Windows software as my system no longer logged onto the internet. One day to the next, it just would not show me Wifi connection details. I fixed that with th… read more
technicalcat
technicalcat
Computer Science
838 satisfied customers
I'm trying to get an IF/THEN/ELSE statement to work in a
Hi there. I'm trying to get an IF/THEN/ELSE statement to work in a mail merge. Here it is in a nutshell: … read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
I purchase a new Dell Laptop; order number 324841229;
I purchase a new Dell Laptop; order number###-##-#### Customer number###-##-#### as part off the purchase on 1/12/2018, was the software for Microsoft Office 365 personal. DE000000215429516 … read more
JJesus Perez Gonzale
JJesus Perez Gonzale
Bachelors of Science, Computer Engineering
37 satisfied customers
I just acquired 365 and now I cannot access any of my
I just acquired 365 and now I cannot access any of my documents. whatsup? … read more
Jason Jones
Jason Jones
AAS Information Technology
6,320 satisfied customers
Word update downloaded automatically. I printed a few church
Word update downloaded automatically. I printed a few church bulletins before the update. I print front page and back page in landscape mode so I can fold in the middle. After the update, both front a… read more
bbao
bbao
Freelance IT Consultant
74 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x