A
alex
Experts,
I've created a quick report card based on an Access Form.
It works well until I have to print multiple records. I've added the
following VBA code to an on click command:
Private Sub LNR_REFERRAL_Click()
On Error GoTo Err_LNR_REFERRAL_Click
DoCmd.PrintOut acPages, 1, 1, acMedium, 1, 1
Exit_LNR_REFERRAL_Click:
Exit Sub
Err_LNR_REFERRAL_Click:
MsgBox Err.Description
Resume Exit_LNR_REFERRAL_Click
End Sub
After the data is entered on the Form, the user checks a box (on the
Form) and the 'report' is created-which is simply a snapshot of what
was entered on the screen.
This works very well; however, when the user saves the record (data is
transmitted to the table), then enters new data onto the Form, then
prints, the aforementioned code prints the data that was previously
entered and not what is currently on the Form.
Can someone help adjust the code so that the current screen is printed
and not what was previously saved? The above code will print what's
on the current screen until you enter a new record.
Thanks,
alex
I've created a quick report card based on an Access Form.
It works well until I have to print multiple records. I've added the
following VBA code to an on click command:
Private Sub LNR_REFERRAL_Click()
On Error GoTo Err_LNR_REFERRAL_Click
DoCmd.PrintOut acPages, 1, 1, acMedium, 1, 1
Exit_LNR_REFERRAL_Click:
Exit Sub
Err_LNR_REFERRAL_Click:
MsgBox Err.Description
Resume Exit_LNR_REFERRAL_Click
End Sub
After the data is entered on the Form, the user checks a box (on the
Form) and the 'report' is created-which is simply a snapshot of what
was entered on the screen.
This works very well; however, when the user saves the record (data is
transmitted to the table), then enters new data onto the Form, then
prints, the aforementioned code prints the data that was previously
entered and not what is currently on the Form.
Can someone help adjust the code so that the current screen is printed
and not what was previously saved? The above code will print what's
on the current screen until you enter a new record.
Thanks,
alex