I'm currently working on a db that will allow a user to track a project with 3 different contractors. These contractors and their personal info (ie First name,Last name, Company etc..) are located in a table called Contacts.
The Form I'm working with is a projects for and stores data into the projects table.
My users want to be able to goto a specific project and be able to look at/ and enter , the 3 contacts without having to goto a separate form. My solution to this has been to create unbound combo boxes run sql statements on the first, Last, and Company names. I have done this so that the user can locate a person based on name without having to remember a specific contact id number which is my linking field.
So when the user enters the first name field they can type or use a pulldown to identify the users first name. Next they tab into the last name field which runs a query based on the first name field to narrow the search. Next they tab to the company name field which runs a query based on both first and last name to identify the appropriate people and their associated companies.
My problems start now!!! I need to, from the fields provided, identify the contacts id and store it in the Contact Id field. I also need to code so that when opening a particular record, it shows the appropriate Contacts.
Can anyone help. Also does anyone know how to set the value of a combo box so that the first field in the list or in my case SQL request is shown as a default value--instead of a blank field?
The Form I'm working with is a projects for and stores data into the projects table.
My users want to be able to goto a specific project and be able to look at/ and enter , the 3 contacts without having to goto a separate form. My solution to this has been to create unbound combo boxes run sql statements on the first, Last, and Company names. I have done this so that the user can locate a person based on name without having to remember a specific contact id number which is my linking field.
So when the user enters the first name field they can type or use a pulldown to identify the users first name. Next they tab into the last name field which runs a query based on the first name field to narrow the search. Next they tab to the company name field which runs a query based on both first and last name to identify the appropriate people and their associated companies.
My problems start now!!! I need to, from the fields provided, identify the contacts id and store it in the Contact Id field. I also need to code so that when opening a particular record, it shows the appropriate Contacts.
Can anyone help. Also does anyone know how to set the value of a combo box so that the first field in the list or in my case SQL request is shown as a default value--instead of a blank field?