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
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