I'm trying to limit (by filtering) the list of records users can make a selection from by allowing them to filter the list by name and/or ssn. But when I try and create a cbo or listbox based on my query (qrySelPartic) I receive this informational error:
"No value given for one or more required parameters."
Let me try and summarize what I'm trying to do:
1. User clicks "Add Participant" cmd button.
2. frmAddPartic opens and prompts the user to enter a Last Name and/or SSN
3. frmAddPartic.lstSelPartic is populated with only those records the query finds that match the name or ssn entered by the user. (the source for lstSelPartic = qrySelPartic, which prompts the user for 'Last Name' or 'SSN'. This filters 185,000 records down to only those that match the user's input.)
4. User double-clicks the record in lstSelPartic that he wants to add, and the record is added to frmAddPartic and stored in tblParticipant.
Hope that makes sense. As I said, the problem comes from the fact that qry SelPartic contains [Enter Last Name:] criteria for the LName field. If I remove it, I do not receive the error above. But I need to perform that filtering step in order to minimize the selection list for the users.
What am I doing wrong? Why can't I base my list box on a filtered (by user input) query?
Thanks,
kerry
"No value given for one or more required parameters."
Let me try and summarize what I'm trying to do:
1. User clicks "Add Participant" cmd button.
2. frmAddPartic opens and prompts the user to enter a Last Name and/or SSN
3. frmAddPartic.lstSelPartic is populated with only those records the query finds that match the name or ssn entered by the user. (the source for lstSelPartic = qrySelPartic, which prompts the user for 'Last Name' or 'SSN'. This filters 185,000 records down to only those that match the user's input.)
4. User double-clicks the record in lstSelPartic that he wants to add, and the record is added to frmAddPartic and stored in tblParticipant.
Hope that makes sense. As I said, the problem comes from the fact that qry SelPartic contains [Enter Last Name:] criteria for the LName field. If I remove it, I do not receive the error above. But I need to perform that filtering step in order to minimize the selection list for the users.
What am I doing wrong? Why can't I base my list box on a filtered (by user input) query?
Thanks,
kerry