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!

form to report help

Status
Not open for further replies.

skierm

Programmer
Jun 9, 2003
39
US
when i press a preview report button i want to be able to just view the report of the record i am looking at now, and not all of them. How can i make this button do this. thanks
 
You will need to pass some criteria. This assumes your primary key 'MyPrimaryKey' is bound/stored in a textbox called "txtPrimaryKey"

DoCmd.OpenReport "MyReport", acViewPreview, ,"MyPrimaryKey=" & Me.txtPrimaryKey
 
i am getting this error. Syntax error (missing operator) in query expression '(FName=Nancy)'.

any thoughts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top