I have a form where the user selects values from a few comboboxes and then hits a Search button that populates a listbox with the records that match those values. That works but, instead of a listbox, I would prefer to use a subform (because subforms can show the record count, etc.) but can't figure out how to set the RecordSource of the subform in code. The subform exists but, when I click the Search button, I get the error message saying that Access can't find the subform object. How exactly do I reference the subform from the parent form's Search button's OnClick event? I mean something like:
[forms].[mysubform].RecordSource = "SELECT Query"
THANKS in advance! lastout (the game's not over till it's over)
[forms].[mysubform].RecordSource = "SELECT Query"
THANKS in advance! lastout (the game's not over till it's over)