G
Guest
Let me start by apologizing. I'm almost certain that this has been answered
somewhere here before but I have searched and searched to no avail. Some of
the posts get really close and then they seem inevitably to be resolved in
private emails between the poster and the respondent.
Anyhow, I have a report. Its On Open property is set to open a criteria
form. This form contains a ListBox control and two Command Buttons, one Ok
and one Cancel. aach associated with an OK or Cancel macro respectively -
that way when the user clicks either, the form closes. At any rate, what I
want to do is pass the item(s) selected in the ListBox to a query parameter
(instead of using a standard parameter query) so that when the report opens
it displays the items selected from the ListBox. If you tell me which
property to associate it with, I can dumb the VBA code in - I just need to
know what the code should be, where it goes, and what the query criteria
should read.
Thanks in advance.
somewhere here before but I have searched and searched to no avail. Some of
the posts get really close and then they seem inevitably to be resolved in
private emails between the poster and the respondent.
Anyhow, I have a report. Its On Open property is set to open a criteria
form. This form contains a ListBox control and two Command Buttons, one Ok
and one Cancel. aach associated with an OK or Cancel macro respectively -
that way when the user clicks either, the form closes. At any rate, what I
want to do is pass the item(s) selected in the ListBox to a query parameter
(instead of using a standard parameter query) so that when the report opens
it displays the items selected from the ListBox. If you tell me which
property to associate it with, I can dumb the VBA code in - I just need to
know what the code should be, where it goes, and what the query criteria
should read.
Thanks in advance.