PCHomepage
Programmer
Using a button on the form, I am trying to open a report that can be used to print an invoice of the transaction. The query used joins the necessary tables and puts the needed data together but I am not sure how to make submit the ID so that it opens only a single record! Right now the button launches this code:
but it gives
Run-time error '3075';
Syntax error (missing operator) in query expression
'[ID]=Forms!Add an Order and Details'.
I'm very experienced in databases but from a Web-programming point of view so I'm not sure how to do this directly in Access (Access 2007 but the form is Access 2002-2003 format). Any ideas?
Thanks!
Don
Code:
Private Sub ViewRequests_Click()
DoCmd.OpenReport "Order Invoice", acViewPreview, , _
"[ID]=Forms!frmAdd an Order and Details"
End Sub
but it gives
Run-time error '3075';
Syntax error (missing operator) in query expression
'[ID]=Forms!Add an Order and Details'.
I'm very experienced in databases but from a Web-programming point of view so I'm not sure how to do this directly in Access (Access 2007 but the form is Access 2002-2003 format). Any ideas?
Thanks!
Don