M
MNJoe
I have a report that opens a form, on the form is a combo box with a
selection of resources. when the user selects a resource and clicks the start
button the form disappears and the report query uses the resource to generate
the report. The report query can not use the combo box value so I declared a
public variable and set it to the value of the selectioin in the combo box. I
use that variable in the report query. This works for Version 2003 but in
version 2007 when I run it. A msg box pops up wanting the user to input the
value into the query.
I know using public variables is not a real good idea (read that in a few
postings here) but, This was a little cleaner than creating a text box on the
form (which the user could see and would play around with) then setting the
value of the text box to the combo box. Do I have to change over to the text
box to get this to work in 2007?
any help or suggestions greatly appreciated.
the code I use in the query is
[forms]![resource_Load_Form].[STRResource_Selected]
selection of resources. when the user selects a resource and clicks the start
button the form disappears and the report query uses the resource to generate
the report. The report query can not use the combo box value so I declared a
public variable and set it to the value of the selectioin in the combo box. I
use that variable in the report query. This works for Version 2003 but in
version 2007 when I run it. A msg box pops up wanting the user to input the
value into the query.
I know using public variables is not a real good idea (read that in a few
postings here) but, This was a little cleaner than creating a text box on the
form (which the user could see and would play around with) then setting the
value of the text box to the combo box. Do I have to change over to the text
box to get this to work in 2007?
any help or suggestions greatly appreciated.
the code I use in the query is
[forms]![resource_Load_Form].[STRResource_Selected]