snoopy92211
Technical User
I have a table, tbldata that lists, among other things,
name
companycode
address
I have another table, tblmastercompany that lists all the company codes and their corresponding companycode addresses.
What I want to be able to do is check tbldata against tblmastercompany and append the companycode address to tbldata.
For example
row 1 in tbldata has company code of 0001, name, Snoopy, and address is 800 Heaven St.
in tblmastercompany, the company code 0001 has a company address of 100 S. Fifth street.
I want to be able to
1. Check against mastercompany
2. append the corresponding company address information fields to tbldata for the particular record.
3. After it checks the entire table and appends, I want to let the user know if there are any unmatching records (i.e. any companycodes in tbl data that aren't in the mastercompany table) and gives them a prompt to add the new codes/address to the company table.
*phew* Normally, In excel I would do a V-Lookup to match Cmpany code information from both tables, but I don't have the slightest clue how to do it in MS Access.
Any help would be greatly appreciated!
Thanks,
Snoopy
name
companycode
address
I have another table, tblmastercompany that lists all the company codes and their corresponding companycode addresses.
What I want to be able to do is check tbldata against tblmastercompany and append the companycode address to tbldata.
For example
row 1 in tbldata has company code of 0001, name, Snoopy, and address is 800 Heaven St.
in tblmastercompany, the company code 0001 has a company address of 100 S. Fifth street.
I want to be able to
1. Check against mastercompany
2. append the corresponding company address information fields to tbldata for the particular record.
3. After it checks the entire table and appends, I want to let the user know if there are any unmatching records (i.e. any companycodes in tbl data that aren't in the mastercompany table) and gives them a prompt to add the new codes/address to the company table.
*phew* Normally, In excel I would do a V-Lookup to match Cmpany code information from both tables, but I don't have the slightest clue how to do it in MS Access.
Any help would be greatly appreciated!
Thanks,
Snoopy