docmd

G

Guest

hey all,

i'm using docmd.openreport and i have a question about 1 of the parms:
FilterName

how do i use this parameter? i'd like to be able to open my report based on
whether a field is true or false.

thanks,
rodchar
 
A

Allen Browne

The FilterName is not really useful. Use the WhereCondition instead.

Example: if you want to open a report limited to only the records where the
Inactive field is false:
DoCmd.Openreport "Report1", acViewPreview, , "Inactive = False"
 
G

Guest

thank you.

Allen Browne said:
The FilterName is not really useful. Use the WhereCondition instead.

Example: if you want to open a report limited to only the records where the
Inactive field is false:
DoCmd.Openreport "Report1", acViewPreview, , "Inactive = False"
 

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

Similar Threads


Top