i have a button and in the click event i have this code:
DoCmd.OpenReport "All_Ones"
when i click it, for some reason the report starts to print! why is this?
i have a button and in the click event i have this code:
DoCmd.OpenReport "All_Ones"
when i click it, for some reason the report starts to print! why is this?
If you are using MS Access 2003, from OpenReport Method [Access 2003 VBA Language Reference]
acViewNormal (default) Prints the report immediately.
From 2007 DoCmd.OpenReport Method and AcView Enumeration
acViewNormal (Default) Normal view
So the question is, which version are you using?