Print Invoice from Form

R

Roger Bell

I have created a Control to Print the current record as an Invoice. This
works fine, but when a new record is added and you go direct to Print
Invoice, The details are missing and I suspect this is because the new record
has not been saved.
Is there a way you can write some code into the "On Click" event procedure
so that the new record will save when you click the Print Invoice control?
Thanks for any help
 
D

Duane Hookom

One method is to add this line prior to opening your report:
DoCmd.RunCommand acCmdSaveRecord
 
Top