Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filter and sorting

Status
Not open for further replies.

smayshar

Programmer
Aug 30, 2003
42
AU
I have a continuous form with a toolbar for sorting and/or filtering the records, and a command button than open a report
i would like that the report will carry the same sorting and filter like the user choose in the form
i treid :
DoCmd.OpenReport "rName", acViewPreview, , Me.Filter
DoCmd.OpenReport "rName", acViewPreview, Me.Filter
but the report came out with all the records, no filer
any help, what do i do ??
 
Try:

DoCmd.OpenReport "rName", acViewPreview, WhereCondition := Me.Filter

John
 
thenks that helps , how do i cleer the filter for the next time
i tried me.filter = ""
does runtime error
mayshar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top