Output to SNP

N

Newbie

Using a runtime version of Access -
can I set the filter properties of the report at runtime?


eg: Reports!Sales12mthRolling.Filter = strFilter
Reports!Sales12mthRolling.FilterOn = strFilterOn

strFilter is a string
strFilterOn is yes/no

I usually do this in design mode

If not how can I achieve the samething?
 
D

Douglas J. Steele

FilterOn is a boolean property: you should be passing it True (-1) or False
(0), not a string.
 
N

Newbie

Yes I do pass it true/false but will this still work with a runtime version
of Access?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top