tags:

views:

35

answers:

1

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?

+2  A: 

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?

astander
thanks! you answered it
I__
please help with this one http://stackoverflow.com/questions/3008376/sequence-of-events-in-access
I__
Added a suggestion X-)
astander