Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

access

ResolvedVersion 2007

Jo has attended:
Access Introduction course

Access

Do I need to create a second table for more than one contact name at a company/customer entry?

RE: Access

Dear Jo

Thank you for attending Access 2007 Introduction course!! I hope you enjoyed the course and benefited from it.

Yes, if you are creating a database for contact management where you have companies (your Clients or customers) and within those companies you have contacts then it is advisable that you create two seperate tables. One for Company and One for the Contacts.

You will have Company ID in the Company table as the Primary key and Contact ID in teh contacts Table as the Primary key. Once you have established teh Primary keys then you will assign company ID as a Foreign key in the Contacts table so that you can create a One to Many relationship between the two. One company can have many contacts at one time but one Contact can only be in one company at one time.

Please refer the following link that provides a very good example of a contact management database. I beleive that you can e-mail and get the sample database free of charge from the website owner.

http://www.databaseanswers.org/data_models/contact_management/index.htm

I hope this has answered your query.

If this has answered your query then I would request you to please mark the question as resolved!! If not and you have a specific question related to this then please post it as a new question and we should be able to provide you the solution for it!!

Kindest Regards


Rajeev Rawat
MOS Master Instructor 2000 and 2003
MCAS Master Instructor 2007
MCT

Mon 29 Jun 2009: Automatically marked as resolved.

Access tip:

Deleting duplicate records from a table

You cannot delete records tables where there duplicate records. A way around this is to create a new table which wont hold the duplicates. and then deleting the old table.

1. Use a make-table query based on this table only. IMPORTANT - Ensure that you include all of the fields from your original table or you may loose data.

2. Open the query's property sheet by using VIEW, QUERY, PROPERTIES, and set the Unique Values property to Yes

3. Because you have selected the Unique Values to Yes when you run the query, Access creates a new table without duplicate records. You can now delete the old table and rename the new one.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.13 secs.