M
Mike Langensiepen
I have a data entry form to take payments from a client. On the form is a
'print receipt' button which calls a single page report.
If I put in a payment and tab out of the payment field or press enter on the
payment field then click the print button, the most recent payment doesn't
show on the report. If I go forward a record and then back then it prints
out correctly.
I assume I have to update the record before printing but don't know the
command I need to use. Here is the current Button command sequence:
Private Sub Command357_Click()
DoCmd.OpenReport "PAYRECEIPT", acViewPreview, , "[ContactLastName]=""" &
Me.ContactLastName & """", acWindowNormal
DoCmd.PrintOut acSelection
DoCmd.Close
End Sub
Thanks
Mike
'print receipt' button which calls a single page report.
If I put in a payment and tab out of the payment field or press enter on the
payment field then click the print button, the most recent payment doesn't
show on the report. If I go forward a record and then back then it prints
out correctly.
I assume I have to update the record before printing but don't know the
command I need to use. Here is the current Button command sequence:
Private Sub Command357_Click()
DoCmd.OpenReport "PAYRECEIPT", acViewPreview, , "[ContactLastName]=""" &
Me.ContactLastName & """", acWindowNormal
DoCmd.PrintOut acSelection
DoCmd.Close
End Sub
Thanks
Mike