FuzzyBear9
Technical User
Hi,
I am newbie to Access and would appreciate any guidance to resolving the problem below.
I am currently trying to implement a contact management database. I have two tables.
Table 1: tblCompany
Table 2: tblContact
Table 1 contains two fields:
CompanyID (AutoNumber - Primary Key)
Company (Text)
Table 2 contains numerous fields, eg:
ContactID (AutoNumber - Primary Key)
CompanyID (JOIN: The 'Company' field from Table 1)
Position (Text)
Address (Text)
etc etc
Depending on the type of business, different contacts and their details will need to be accessed for the same company.
Eg TEST COMPANY PLC may have a Finance Director, an HR Director, an IT Director etc, with different addresses and contact numbers.
PROBLEM:
I have been able to set up the related tables and a form (frmClient) for users to enter their data. However I to wish to implement a search function. I have successfully used a combo box in the past to search records by a particular field. However when I attempt to create a combo box for frmClient, the combo box displays the primary key from tblCompany. I want it to display the actual company name. Is there a simple way to achieve this?
Thanking you in advance
I am newbie to Access and would appreciate any guidance to resolving the problem below.
I am currently trying to implement a contact management database. I have two tables.
Table 1: tblCompany
Table 2: tblContact
Table 1 contains two fields:
CompanyID (AutoNumber - Primary Key)
Company (Text)
Table 2 contains numerous fields, eg:
ContactID (AutoNumber - Primary Key)
CompanyID (JOIN: The 'Company' field from Table 1)
Position (Text)
Address (Text)
etc etc
Depending on the type of business, different contacts and their details will need to be accessed for the same company.
Eg TEST COMPANY PLC may have a Finance Director, an HR Director, an IT Director etc, with different addresses and contact numbers.
PROBLEM:
I have been able to set up the related tables and a form (frmClient) for users to enter their data. However I to wish to implement a search function. I have successfully used a combo box in the past to search records by a particular field. However when I attempt to create a combo box for frmClient, the combo box displays the primary key from tblCompany. I want it to display the actual company name. Is there a simple way to achieve this?
Thanking you in advance