B
Brook
good day,
I want to open be able to check a box (requestforshipment is the name of
the checkbox) on my form for a specific number of records, then open my
report (rptshipmentrequest).
This is what I have but isn't working:
Private Sub Command37_Click()
On Error GoTo Err_Command37_Click
Dim stDocName As String
If Me.shipmentrequest = True Then
stDocName = "rptshipmentrequest"
DoCmd.OpenReport stDocName, acPreview
End If
Exit_Command37_Click:
Exit Sub
Err_Command37_Click:
MsgBox Err.Description
Resume Exit_Command37_Click
End Sub
Thanks,
Brook
I want to open be able to check a box (requestforshipment is the name of
the checkbox) on my form for a specific number of records, then open my
report (rptshipmentrequest).
This is what I have but isn't working:
Private Sub Command37_Click()
On Error GoTo Err_Command37_Click
Dim stDocName As String
If Me.shipmentrequest = True Then
stDocName = "rptshipmentrequest"
DoCmd.OpenReport stDocName, acPreview
End If
Exit_Command37_Click:
Exit Sub
Err_Command37_Click:
MsgBox Err.Description
Resume Exit_Command37_Click
End Sub
Thanks,
Brook