OK i have a database that i have been developing as and when i have time over the years. It has become more and more complex and now 7 or 8 others use it in the office too. I am self taught and have been enjoying doing it this way.
The db in question has become like a project management database. It has a table of contacts (tblAddress), a table of quotes (tblQuotes), a table of planning applications (tblPlanning) and a table of contracts (tblContracts). Between the 4 tables there is over 10,000 records.
I have various forms/queries that add records to each table dependant on what information is required. There is NO link between these tables but there are fields with similar information (ie Name, Phone Number, Sage Account Ref, Postcode etc.).
My current problem that i am trying to fix is the fact that when we search for information we have 4 different places we have to search (the 4 tables). I intend to manually create a link by adding an AddressID (AID) field to tblQuotes, tblPlanning & tblContracts. I will create 3 forms, one for each of these tables. The form will have the main address box on the left with a simple listbox and the respective table to the right in a multiselect listbox. I will have a Link button at the bottom. When pressed it will copy the UniqueID from the tblAddress to the AID field in the tblQuotes. That way i can select multiple quotes and link them to each contact in the address book.
I can do everything but the VBA code behind the Link button. Which is the HELP i need.
Thanks in advance
The db in question has become like a project management database. It has a table of contacts (tblAddress), a table of quotes (tblQuotes), a table of planning applications (tblPlanning) and a table of contracts (tblContracts). Between the 4 tables there is over 10,000 records.
I have various forms/queries that add records to each table dependant on what information is required. There is NO link between these tables but there are fields with similar information (ie Name, Phone Number, Sage Account Ref, Postcode etc.).
My current problem that i am trying to fix is the fact that when we search for information we have 4 different places we have to search (the 4 tables). I intend to manually create a link by adding an AddressID (AID) field to tblQuotes, tblPlanning & tblContracts. I will create 3 forms, one for each of these tables. The form will have the main address box on the left with a simple listbox and the respective table to the right in a multiselect listbox. I will have a Link button at the bottom. When pressed it will copy the UniqueID from the tblAddress to the AID field in the tblQuotes. That way i can select multiple quotes and link them to each contact in the address book.
I can do everything but the VBA code behind the Link button. Which is the HELP i need.
Thanks in advance