BarryMK
4 strings are enough
- Local time
- Today, 15:20
- Joined
- Oct 15, 2002
- Messages
- 1,349
I've searched this one extensively and come up with nothing to help.
I have an unbound switchboard form with several command buttons.
I would like to set a filter in the code for each command button to open up my report "rptCurrentAll" to show all records where a field on the report called "Section" equals a variable.
For example where the filter is "NV" show all records where Section = NV
I suspect it's going to be a variant on DoCmd.OpenReport with a where clause but can't get the correct syntax.
I have an unbound switchboard form with several command buttons.
I would like to set a filter in the code for each command button to open up my report "rptCurrentAll" to show all records where a field on the report called "Section" equals a variable.
For example where the filter is "NV" show all records where Section = NV
I suspect it's going to be a variant on DoCmd.OpenReport with a where clause but can't get the correct syntax.