A
an
Hello!
Is possible to choose more than one query to "feed" a same
form, please?
Thanks in advance.
an
Is possible to choose more than one query to "feed" a same
form, please?
Thanks in advance.
an
(Me.ComboboxName.Value, "JanuaryQuery",-----Original Message-----
I think so, if I'm understanding your question.
You could have a form open that asks the user which month to use. The user
enters (or selects in a combo box) the desired information, and the clicks a
button on that form. The form then runs code to open the form that will
display the data, and the form passes to the "data display" form the query
that is to be used as the second form's Recordsource. This passing is done
via the OpenArgs argument of the DoCmd.OpenForm action. The second form
reads the OpenArgs value and uses it to set the RecordSource.
For the button on the first form, assuming that the user selects a month
from the combo box and that the combo box's value is 1, 2, 3, etc.
corresponding to the month:
Private Sub CmdButtonName_Click()
Dim strQueryName As String
strQueryName = Choose