G
Guest
I have a form with 3 data entry fields and a SUBMIT button. When the submit
button is clicked, there's a vB procedure that validates and processes the
fields. Then that procedure does a "DoCmd.RunMacro 'whatever'"
Now, the query called from the macro is supposed to query based on the data
in the form-fields. However, the query refuses to recognize the fields'
existence, and I get prompted for parms instead. In thw query itself, I have
the following (example) coded in for a criteria:
Between [Forms]![Site Selection]![StartMMYYYY] And [Forms]![Site
Selection]![EndMMYYYY]
But again, the query refuses to recognize the fields. I created this code
with the expression builder, so *it* sees the fields properly.
Can someone please help with this?
Thanks!
button is clicked, there's a vB procedure that validates and processes the
fields. Then that procedure does a "DoCmd.RunMacro 'whatever'"
Now, the query called from the macro is supposed to query based on the data
in the form-fields. However, the query refuses to recognize the fields'
existence, and I get prompted for parms instead. In thw query itself, I have
the following (example) coded in for a criteria:
Between [Forms]![Site Selection]![StartMMYYYY] And [Forms]![Site
Selection]![EndMMYYYY]
But again, the query refuses to recognize the fields. I created this code
with the expression builder, so *it* sees the fields properly.
Can someone please help with this?
Thanks!