I have a command button to print the current form
Private Sub MERCEDES_Click()
On Error GoTo Err_MERCEDES_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "rptMERCEDES"
stLinkCriteria = "[Serial Number]=" & """& Me![Serial Number]&"""
DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria
Exit_MERCEDES_Click:
Exit Sub
Err_MERCEDES_Click:
MsgBox Err.Description
Resume Exit_MERCEDES_Click
End Sub
When I click the command button, it gives me one record. YAY!!! BUT, there is no information ON the report. When I open the report from the left menu bar all the information is there.
Crystal
Private Sub MERCEDES_Click()
On Error GoTo Err_MERCEDES_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "rptMERCEDES"
stLinkCriteria = "[Serial Number]=" & """& Me![Serial Number]&"""
DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria
Exit_MERCEDES_Click:
Exit Sub
Err_MERCEDES_Click:
MsgBox Err.Description
Resume Exit_MERCEDES_Click
End Sub
When I click the command button, it gives me one record. YAY!!! BUT, there is no information ON the report. When I open the report from the left menu bar all the information is there.
Crystal