printing invoice, need to requery? (1 Viewer)

deekras

Registered User.
Local time
Today, 17:34
Joined
Jun 14, 2000
Messages
169
i want to print an invoice right after entering the data. however, as i have it set up now, i must always go to the next record and tehn back again to get the info on teh report. i suppose i need to requery. but i don't know how to do it.

suggestions?
 
R

Rich

Guest
Again you will find most of the answers to your posts in the solutions database and in the other samples provided by microsoft.
 

deekras

Registered User.
Local time
Today, 17:34
Joined
Jun 14, 2000
Messages
169
i did try to find the answers with the sample databases. couldn't find the answer to this one. any suggestions?
 
R

Rich

Guest
Try adding Me.Requery to the command button before the open report statement.
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 12:34
Joined
Feb 19, 2002
Messages
43,359
You must save the current record before you print the invoice. Add the following line of code to the click event of your print button prior to the print command:

DoCmd.RunCommand acCmdSaveRecord
 

Users who are viewing this thread

Top Bottom