Multiple Combo boxes on form (1 Viewer)

QueryStumped

Registered User.
Local time
Today, 18:22
Joined
Mar 22, 2017
Messages
60
Hello... I have been tasked to create a database. On the form I am needing to filter out records by location and type employment to bring up a record. I have the location combo box, but stumped on getting another combo box, type employment, to filter the records. I don’t have a programming background but I am willing to try anything.TIA
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:22
Joined
May 7, 2009
Messages
19,247
study this sample especially the query.
 

Attachments

  • employment.accdb
    488 KB · Views: 277

conception_native_0123

Well-known member
Local time
Today, 17:22
Joined
Mar 13, 2021
Messages
1,841
the WHERE code in the query is:
Wiki:
WHERE [field name] = forms!form_name_here!combo_box_name_here
arne's example is sort of a cascade. dependency if you will. the simplest version of what you want to do would be something like this, I would guess:
Code:
SELECT * FROM table WHERE [type employment] = forms!your_form_name_here!combo_box_name_employment type_here AND
[location] = forms!your_form_name_here!combo_box_name_location_here
 

Users who are viewing this thread

Top Bottom