G
Guest
I am tring to have the current record viewed in a form to print with a
report. I can't seam to get it to work. It will open the report but not
refernceing the correct record number. Can some please help me out.
Private Sub CmdPrint_Click()
On Error GoTo Err_CmdPrint_Click
DoCmd.OpenReport "PrintRMA", acViewPreview
Reports![PrintRMA].Filter = "RMATbl.RcdID" = "& Me![RcdID]"
Reports![PrintRMA].FilterOn = True
Exit_CmdPrint_Click:
Exit Sub
Err_CmdPrint_Click:
MsgBox Err.Description
Resume Exit_CmdPrint_Click
End Sub
report. I can't seam to get it to work. It will open the report but not
refernceing the correct record number. Can some please help me out.
Private Sub CmdPrint_Click()
On Error GoTo Err_CmdPrint_Click
DoCmd.OpenReport "PrintRMA", acViewPreview
Reports![PrintRMA].Filter = "RMATbl.RcdID" = "& Me![RcdID]"
Reports![PrintRMA].FilterOn = True
Exit_CmdPrint_Click:
Exit Sub
Err_CmdPrint_Click:
MsgBox Err.Description
Resume Exit_CmdPrint_Click
End Sub