M
Me Ted
I have a form with a command button that is designed to print the current
form record as a report. It works just fine, HOWEVER, it prints all records
for that particular Customer ID. Any clues as to what's wrong with the code
below?
Private Sub cmdPrint_Click()
'Print current record
'using rptJobs.
If IsNull(Me!CustID) Then
MsgBox "Please select a valid record", _
vbOKOnly, "Error"
Exit Sub
End If
DoCmd.OpenReport "rptJobs", , , _
"CustID = " & Me!CustID
End Sub
form record as a report. It works just fine, HOWEVER, it prints all records
for that particular Customer ID. Any clues as to what's wrong with the code
below?
Private Sub cmdPrint_Click()
'Print current record
'using rptJobs.
If IsNull(Me!CustID) Then
MsgBox "Please select a valid record", _
vbOKOnly, "Error"
Exit Sub
End If
DoCmd.OpenReport "rptJobs", , , _
"CustID = " & Me!CustID
End Sub