N
Noone
I am trying to print a report for a current form which has just been
filled out.
However, unless I leave the current form and return to it, the report
prints blank.
Here is the code:
_______
Private Sub PrintVoucherSingle_Click()
'Print current record
'using rptlIndividualTaxiCertificates
If IsNull(Me!CertNumber) Then
MsgBox "Please select a valid record", _
vbOKOnly, "Error"
Exit Sub
End If
DoCmd.OpenReport "rptlIndividualTaxiCertificates", , , _
"CertNumber = " & Me!CertNumber
End Sub
__________________________________
What have I left out?
Tahnk you
filled out.
However, unless I leave the current form and return to it, the report
prints blank.
Here is the code:
_______
Private Sub PrintVoucherSingle_Click()
'Print current record
'using rptlIndividualTaxiCertificates
If IsNull(Me!CertNumber) Then
MsgBox "Please select a valid record", _
vbOKOnly, "Error"
Exit Sub
End If
DoCmd.OpenReport "rptlIndividualTaxiCertificates", , , _
"CertNumber = " & Me!CertNumber
End Sub
__________________________________
What have I left out?
Tahnk you