I have some code that I have used printout in for the 1st time. It prints the active report fine but then also prints the form "FRMmainboard" afterwards(which is NOT open). If I comment it out it still does it so I am confussed. A number of othe forms have been opened and closed since FRMmainform was last used, I 1st thought It may have been a " hangover" in the memory, if such a thing could occur I am not sure. Can anybody explain why this may be occuring?
This is the end of the code....
DoCmd.OpenReport "RPT CashDeclareTempPrint"
DoCmd.PrintOut acPages, 1, 1
DoCmd.SetWarnings True
DoCmd.OpenForm "FRMMainboard"
This is the end of the code....
DoCmd.OpenReport "RPT CashDeclareTempPrint"
DoCmd.PrintOut acPages, 1, 1
DoCmd.SetWarnings True
DoCmd.OpenForm "FRMMainboard"