Combobox, match one database with another

DarkSmile

Board Regular
Joined
Feb 22, 2021
Messages
90
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a form based on a database 'Klanten - Food' => this database stores all information about our clients (Name, ID, Standard, City,...),
I have another database 'Auditoren' => This stores the name of the auditoren and for wich standard they are qualified.

I have a from based on the client database:
1680246199961.png


I would like now to be able (I tried with combo35 but no success) to say => Match standard (from client) with the standard in auditoren, and if it has an X the auditor is qualified and needs to come in a dropdown list.
Result would be => Test klant has standard IFS Broker

In my Database auditoren => Test is qualified for ACS-003 Déb , IFS Broker , IFS Global Markets & IFS L
Test should be the only one showing up in the dropdown

1680246500552.png


How can I achieve this?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You will forever have difficulty in getting at data from tables that are designed like spreadsheets. This is a very common mistake that Excel users make. Your qualifications should be in rows/records in a related table, not spread across fields. IMO, you will now have to make a UNION query to get the values in rows, then use that query in another query. The 2nd query would use the criteria you're looking for. If it's ACS-003 Deb then that would be the criteria to use. If you want all qualifications then use no criteria. If your tables were designed properly you would almost never need a UNION query. Perhaps you will have to link to the other db table since it is in a different database.

Also, you should not have special characters (save for underscore _ ) or spaces in any object name (fields are objects). I suggest you research db normalization with the thought of rebuilding your db or you will always have trouble.

Normalization Parts I, II, III, IV, and V
and/or

Naming conventions
- General: Commonly used naming conventions
- MS Access Naming Conventions

What not to use in names
- Microsoft Access tips: Problem names and reserved words in Access
 
Upvote 0
You will forever have difficulty in getting at data from tables that are designed like spreadsheets. This is a very common mistake that Excel users make. Your qualifications should be in rows/records in a related table, not spread across fields. IMO, you will now have to make a UNION query to get the values in rows, then use that query in another query. The 2nd query would use the criteria you're looking for. If it's ACS-003 Deb then that would be the criteria to use. If you want all qualifications then use no criteria. If your tables were designed properly you would almost never need a UNION query. Perhaps you will have to link to the other db table since it is in a different database.

Also, you should not have special characters (save for underscore _ ) or spaces in any object name (fields are objects). I suggest you research db normalization with the thought of rebuilding your db or you will always have trouble.

Normalization Parts I, II, III, IV, and V
and/or

Naming conventions
- General: Commonly used naming conventions
- MS Access Naming Conventions

What not to use in names
- Microsoft Access tips: Problem names and reserved words in Access
Thank you, if changed the way my data is stored, so now i have 3 databases.

1. Auditor + ID
2. Normen + ID
3. Qualified => this one is linked with the 2 others
1680510824107.png


Result: I can see per auditor & norm who is qualified for what

1680510913507.png


Now I need to match the normen from my test client with the database qualified , I assume I need to change something on how I store this data too?

1680511129475.png

1680511095251.png


Are you able to help a bit more?
 
Upvote 0
Actually you have 3 tables in one database, not 3 databases. From what I can interpret, you now have 2 main tables and a junction table (Qualified) for a many to many relationship (many auditors can have many qualifications) so that part looks good. Probably the best way to proceed with your question is to have a main form (for auditors) with a subform for normen (quality system standards?). You could research how to design for subforms so that you get the linking right.

If you're in the mood to improve the design as much as possible, you should review the following and fix a few things. When you read the links note that ID is a poor name for a table field. If you improve the design, consider reposting the relationships. One other thing not noted in any of the links is that I'd advise basing forms on queries and not tables if you think that eventually there will be a lot of records. Access will load a large batch of records (not the entire table of records when there are very many, but certainly all fields) which may eventually slow things down.

Normalization Parts I, II, III, IV, and V
and/or

Naming conventions
- General: Commonly used naming conventions
- MS Access Naming Conventions

What not to use in names
- Microsoft Access tips: Problem names and reserved words in Access

About Auto Numbers
- General: Use Autonumbers properly

The evils of lookup fields - The Access Web - The Evils of Lookup Fields in Tables
Table and PK design tips - Microsoft Access Tables, Primary Key Tips and Techniques
About calculated table fields - Microsoft Access tips: Calculated Fields
About Multi Value Fields - Multivalued Fields
 
Upvote 0

Forum statistics

Threads
1,215,205
Messages
6,123,634
Members
449,109
Latest member
Sebas8956

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top