Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to print report from form without closing it

Status
Not open for further replies.

millrat

Technical User
Dec 23, 2003
98
US
Hi
How can I print my report from my form without first closing it. Currently when I fill out my form then select print report the report is blank. If I close the form then open it again it works OK. How can I get around this problem?
Thanks
millrat
 
Presumably you are opening the report from a command button on the form. If so, add code to the button to Save the Record first, then open the report.

DoCmd.Save AcForm "YourFormName"
OR
DoCmd.RunCommand AcCmdSaveRecord
OR
Me.Dirty = False

will all save the record.

HTH
Lightning
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top