I believe acHidden is not used in Access 2000. Basically you can just re-write the code by creating a new button on the form and then chosing print report on the wizzard. Open it up and you'll see what code to use. I'm not smart enough to give real advice except to say, use the wizzards as much as you can. But having asked 3 times for help on the same issue here and having received zero replies, I'm guessing that I need to give some advice first before I get any back. :-)
--- In [email protected], "david881498" <[EMAIL PROTECTED]> wrote: > > Hello, > > I am using the following vba code, on a form button, to print a report. > > DoCmd.OpenReport stDocName, acPreview, , , acHidden > > This code works fine in 2002, but falls over in 2000 with the > following message. > > Compile Error > > Wrong number of arguments or invalid property assignment > > Anyone got any ideas? > > Thanks >
