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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Control Print Form Problem

Status
Not open for further replies.

GPM4663

Technical User
Aug 9, 2001
165
GB
Hi Everyone,
I have a main form with a tab control in the detail and each page of the tab control holds a subform. I have a print button in the main form to print the screen should the user have a query. The button triggers the following code

"DoCmd.RunCommand acCmdPrint"

For some reason the first time the person clicks it the form prints with no values in the subform. If they click it a second time it prints correctly. I have no idea why and was hoping someone could shed some light on it for me? Normally I would get it to print a report instead of an image of the form but I'd like to get to the bottom of this before I go down that route

Many thanks in advance for any help,

GPM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top