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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Declaring variable equal to filter of form

Status
Not open for further replies.

jgd12345

Technical User
Apr 22, 2003
124
GB
This is my last problem. What's the vba code to have a command buttom open a report but with the filter being the one currently on the form that the command button is on.

This code below is what I would normally use but I need to set the variable stLinkCriteria equal to the filter for the form.

DoCmd.OpenReport stDocName, , , stLinkCriteria
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top