Hi,
I have a query in witch I make a filter using vba
DoCmd.OpenQuery "qryProductenLeveranciers", , acEdit
Me.Filter = strFilterQ
Me.FilterOn = True
DoCmd.Close acQuery, "qryProductenLeveranciers", acSaveYes
Then I would like to print a report using this query with the filter.
Do I have to build the filter again when opening the report or can I pass the filter.
I thought that the filter was saved in the query by the acSaveYes but when I print then I get all the records.
I use a macro to print.
Thanks
I have a query in witch I make a filter using vba
DoCmd.OpenQuery "qryProductenLeveranciers", , acEdit
Me.Filter = strFilterQ
Me.FilterOn = True
DoCmd.Close acQuery, "qryProductenLeveranciers", acSaveYes
Then I would like to print a report using this query with the filter.
Do I have to build the filter again when opening the report or can I pass the filter.
I thought that the filter was saved in the query by the acSaveYes but when I print then I get all the records.
I use a macro to print.
Thanks