Hi,
thanks for your help but now i get, Microsoft access cant find field
Sale#.
This is the original code:
Dim strDocName As String
Dim strWhere As String
strDocName = "rptSomeReport"
strWhere = "[RunID]=" & me!RunID
DoCmd.OpenReport strDocName, acPreview, , strWhere
This is how i have changed the code.
Dim strDocName As String
Dim strWhere As String
strDocName = "Receipt"
strWhere = "[Sale#]" & Me![sale#]
DoCmd.OpenReport strDocName, acPreview, , strWhere
Where did i go wrong? thank you very much
--
thanks alot
:
Whenever you see sample code like this, you can expect that you would
replace their variables and control names with yours. You stated "each
sale
has a unique number". Replace RunID with the name of your unique
number
(and
your report name replaces "rptSomeReport".
--
Duane Hookom
MS Access MVP
message
Thanks for your help, but now i get
Microsoft Access can't find the field 'RunID' referred to in your
expression.
--
thanks alot
:
Check the code at this page
http://www.mvps.org/access/reports/rpt0002.htm
"Print only the current record to a report".
--
Duane Hookom
MS Access MVP
message
Hi,
I have a report that is the receipt, however it puts every
sale
in
the
report... i only want to have the current sale on it. each sale
has
a
unique
number. please tell me exactly how i can make 1 receipt per page,
as
i
am
quite the nooby when it comes to access.