D
DougW via AccessMonster.com
I have a form bound to a table. I want to use the form to enter new records
in the table. There are 3 fields in each record that are limited selections -
the choices are kept in separate tables and these fields are joined to the
related fields in the main table. The 3 fields are displayed as list boxes
on my data entry form. The user just clicks on the choice they want from
each list box. After making selections from these lists and typing in text
in a fourth field, the user will click an "add record" button to create the
new record.
Unfortunately I have to allow for redundant (duplicate) combinations of my 3
fields.
What I would like to do is to show a query in a subform, that is linked to
the main table, and use the selections from the 3 list boxes as criteria to
drive the query. I would like the query to refresh immediately as each list
box is clicked on. I am trying to use the query to show the user all of the
similar records that have already been put in the table, before the user goes
ahead and creates a possibly duplicate record. If I can't get it to refresh
as the lists are clicked on, it would be okay to trigger the requery from a
"check similar records" button before they add the new record.
What's the smart way to do this? I'm fairly code-impaired so a simple
approach would be best.
Thanks!
-- Doug
in the table. There are 3 fields in each record that are limited selections -
the choices are kept in separate tables and these fields are joined to the
related fields in the main table. The 3 fields are displayed as list boxes
on my data entry form. The user just clicks on the choice they want from
each list box. After making selections from these lists and typing in text
in a fourth field, the user will click an "add record" button to create the
new record.
Unfortunately I have to allow for redundant (duplicate) combinations of my 3
fields.
What I would like to do is to show a query in a subform, that is linked to
the main table, and use the selections from the 3 list boxes as criteria to
drive the query. I would like the query to refresh immediately as each list
box is clicked on. I am trying to use the query to show the user all of the
similar records that have already been put in the table, before the user goes
ahead and creates a possibly duplicate record. If I can't get it to refresh
as the lists are clicked on, it would be okay to trigger the requery from a
"check similar records" button before they add the new record.
What's the smart way to do this? I'm fairly code-impaired so a simple
approach would be best.
Thanks!
-- Doug