Link to home
Start Free TrialLog in
Avatar of LERNWebmaster
LERNWebmaster

asked on

Synchronize combo box & cascade data

I am struggling to get what I am looking for in Microsoft Access 2007 and I know it just can't be this difficult. I have a database with the following information:
Vendor Database (table) - Feilds are as follows: Vendor#,Vendor Name, Vendor Address 1, Vendor Address 2, City, State, Zip
Vaccine Admin (table)
Vaccine Admin Detail (form)

The Vaccine Admin table feeds an upload into our ledger package for accounts payable creation. The Vaccine Admin Detail form is where an outside groups keys the data for the payments.

The problem is they weren't using standard vendor names therefor creating 'new' vendors during the upload process. To eliminate that, I have thought to create cascading combo boxes that allow the person to choose current vendors (from the Vendor Database using the Vendor Name feild) OR add a new one (if it isn't in the vendor table). The problem I am having is getting the Vendor address (Address 1) to reset if the wrong vendor name was choosen (hence the synchronizing) and the cascading of the remainder of the address information (Address 2, City, State and Zip) so it will flow into the Vaccine Admin table.

Here's the code I was trying (in a qry, since I'm not very familiar with VBA) for the synchronizing but I was getting an error message :(

SELECT VendorDatabase.VendorName
FROM VendorDatabase INNER JOIN Vendor Name ON VendorDatabase.Address1=VendorDatabase.VendorName
WHERE (((VendorDatabase.Address1)=[Forms]![VaccineAdminDetail].[cboVendor]));

Any guidance you can provide (even high level) for the synchronize and cascade would be greatly appreciated!!

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of Kelvin Sparks
Kelvin Sparks
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
<...so it will flow into the Vaccine Admin table.>
I agree with Kelvin, only the Vendor# should appear in the Vacine Admin table.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial