G
Guest
Hi All,
I am trying to print a report for the current record only.
This is the code that I am using in the OnClick event of a command button in
a input form:
DoCmd.OpenReport "Rpt_Rental_Detail_Billing_Sheet", , , "Rental_ID = '" &
Me!Rental_ID & "'"
I am getting a data type mismatch here. The Rental ID is an autonumber. Am
I getting the error because DoCmd criteria requires a string? If so, how do
I accomplish what I want to do?
I am trying to print a report for the current record only.
This is the code that I am using in the OnClick event of a command button in
a input form:
DoCmd.OpenReport "Rpt_Rental_Detail_Billing_Sheet", , , "Rental_ID = '" &
Me!Rental_ID & "'"
I am getting a data type mismatch here. The Rental ID is an autonumber. Am
I getting the error because DoCmd criteria requires a string? If so, how do
I accomplish what I want to do?