dmatt
03-18-2010, 03:54 PM
Hi all,
I have never posted on these forums, but it seems that most requests here get answered in earnest by some very helpful people, so I decided to post my own (embarrassingly easy) challenge.
Basically, I'd like to view a report by clicking a button on my database switchboard. The default DoCmd.OpenReport command prints the report to a pdf, but what I'd really like to do is just view the report in "report view" within access.
I have tried poking around at various solutions, and the best I found was writing some language like this:
DoCmd.OpenReport "Outstanding_offers",acViewPreview,,,acWindowNormal,
Which doesn't work. I think my main problem is that I don't have anything entered for the [OpenArg] input for the expression, but I'm not sure. Anyway, I don't want to specify any criteria for opening the report - it is set up exactly how I'd like to view it every time - so I really don't know what to enter for that last argument in the expression.
Can any of you kind access experts assist me here?
Best,
Darren
P.S. Not sure if this post should have gone in the VBA section - my apologies if it should have.
I have never posted on these forums, but it seems that most requests here get answered in earnest by some very helpful people, so I decided to post my own (embarrassingly easy) challenge.
Basically, I'd like to view a report by clicking a button on my database switchboard. The default DoCmd.OpenReport command prints the report to a pdf, but what I'd really like to do is just view the report in "report view" within access.
I have tried poking around at various solutions, and the best I found was writing some language like this:
DoCmd.OpenReport "Outstanding_offers",acViewPreview,,,acWindowNormal,
Which doesn't work. I think my main problem is that I don't have anything entered for the [OpenArg] input for the expression, but I'm not sure. Anyway, I don't want to specify any criteria for opening the report - it is set up exactly how I'd like to view it every time - so I really don't know what to enter for that last argument in the expression.
Can any of you kind access experts assist me here?
Best,
Darren
P.S. Not sure if this post should have gone in the VBA section - my apologies if it should have.