Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close Reports Automatically

Status
Not open for further replies.

TheKepper

Programmer
Jan 21, 2002
7
US
Hi All,
I created a form to act as a menu page and created hyperlinks on it to open up certain reports for viewing. By default, I have set all forms and reports to be maximized. When the report is viewed all is fine. My question is this: Other than searching for the "close" button buried with all of the other toolbar icons, is there a better way to close reports automatically? The target users are a group that is not computer literate, so I am trying to make things obvious for them. Is there a way to embed a close report button in a report?
One method I thought about trying was to try to close all reports using the "On Close" event on the menu page form. Another question, in that case, is how do I determine if and what reports are open? I am still in the learning stage for the VB stuff, just barely able to code enough to get into trouble s-) so this is not an obvious answer to me.

Thanks in advance for any help.
 
TheKepper

We have gone down this route with our users and came up with the idea of opening a form about the height of the and width of a menu bar (this also covers up the menu bar so the users cannot use it). On it we have a print button, pages to and from, No of copies and a close button. To instigate it we set the button event to open and maximize the report, open the Print menu form and send it the report name.

It works well and I think it will solve your problems the only down side is if users have different screen resolutions is gets a bit messey, if you would like and example of it let me know.

Cheers

Chris
 
Hi Chris,
That sounds interesting and I would like to see a sample of it. And, you are right;I am developing on a 1024x768 screen and the target system is 640x480.... Lots of adjustments happening when I go to update them. I am trying to create forms with very few items on them so it will all fit on a screen anyway. I think I can do as you suggest and play with the dimensions a little.

Thanks for responding.

TheKepper
 
TheKepper

If you can leave your mail address I can send you the form and code for it. We use 800*600 for the sample stuff.

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top