forms with hidden access

adaniele

Registered User.
Local time
Today, 20:07
Joined
Jul 18, 2005
Messages
176
hello all ! here is a new challenge.

I have an application in access 2k, where i am hidden access environment using code. Because i am hidding access environment the popup and mode properties are in YES.

Situation:
i have a form with a combo list, where i can select a report, 1 button to view the report , another button to print the report and another button to close the form.
Once the user has selected the report and pressed the view button the following code runs:
Code:
DoCmd.OpenReport "reportname", acViewPreview, acWindowNormal

if the user pressed print the following code runs:
Code:
DoCmd.OpenReport "reportname", acNormal

Problem:
When a user wants to view a report nothing happens. the report is not open.

do any of you have an idea?

i am attaching 2 db. One where you can see the problem with hidding environment (wine_NOcode). The second db without hidding it (wine_code).
the pwd is 1.


thx very much, Max.
 

Attachments

Try this:

DoCmd.OpenReport "reportname", acViewPreview, , , acWindowNormal

(Note the extra commas.)

If that doesn't work, try:

DoCmd.OpenReport "reportname", acViewPreview, , , acDialog

acDialog makes it open Popup and Modal.
 
Adeptus said:
Try this:

DoCmd.OpenReport "reportname", acViewPreview, , , acWindowNormal

(Note the extra commas.)

If that doesn't work, try:

DoCmd.OpenReport "reportname", acViewPreview, , , acDialog

acDialog makes it open Popup and Modal.

adeptus, thx 4 your quick response. didn't work.......
max.
 

Users who are viewing this thread

Back
Top Bottom