I am creating a form that will search a table based on up to three parameters and display the results in a list in which the user can select from. The table has 4 fields.
fields 1-3 are the parameters and the 4th is a corresponding document name based on the first three fields.
example:
fld1 fld2 fld3 fld4
A B C abc.doc
A B D abd.doc
if a user searches for "abc" you get abc.doc
if a user searches for "ab " (does not select a third parameter) you get abc.doc abd.doc
I created three combo boxes (one for each parameter). The values chosen in each box are then used in a query to populate a fourth combo box.
This works fine if the user selects an item from each of the three combo boxes. However, I cannot get the query to work of a user does not use all paramters. I need to allow for an "All" select in the first three combo boxes.
Probably a simple solution to this, but I am very rusty on my programming skills to begin with and am relatively new to access.
fields 1-3 are the parameters and the 4th is a corresponding document name based on the first three fields.
example:
fld1 fld2 fld3 fld4
A B C abc.doc
A B D abd.doc
if a user searches for "abc" you get abc.doc
if a user searches for "ab " (does not select a third parameter) you get abc.doc abd.doc
I created three combo boxes (one for each parameter). The values chosen in each box are then used in a query to populate a fourth combo box.
This works fine if the user selects an item from each of the three combo boxes. However, I cannot get the query to work of a user does not use all paramters. I need to allow for an "All" select in the first three combo boxes.
Probably a simple solution to this, but I am very rusty on my programming skills to begin with and am relatively new to access.