Run Form as a program

chaps632

New member
Local time
Today, 00:49
Joined
Sep 3, 2003
Messages
5
How can I use my Access DB like a program. I have a Formwhere users will input informtaion which is queried to a report, which in turn gets printed out. I would like to run it like a program so they cannot see any toolbars or editing options. I only want the end user to be able to see the form and report. Any ideas would be greatly appreciated.
 
Lookup the options in Tools -> Startup to hide toolbars, etc.

To completely hide the menu you may wish to look at the blank menu bar solution I posted on this thread.
 
Also try a search in this forum for "Hide Access Window" and/or "Hide Database Window"...

HTH,
Kev
 
report behind popup

I appreciate your help greatly and it works but I have a query set up that sends all my info from a form to a report. I have a button on my form to preview the report. When I try to preview it the window is behind the popup form and users will not know that . Is there a way to make that report come up over the form popup window?
Thanks.
 
Why not hide the form while the Report is open?

In the report's Activate() event:

Code:
Forms("frmMyForm").Visible = False

and in its Deactivate() event:

Code:
If IsFormLoaded("frmMyForm") Then Forms("frmMyForm").Visible = True


You'd need to put this extra bit of code into a module:

Code:
Function IsFormOpen(strFormName As String) As Boolean
    IsFormOpen = (SysCmd(acSysCmdGetObjectState, acForm, strFormName) = acObjStateOpen)
End Function
 
cannot find Macro

Thanks again for your help Mile but when I inserted that code into a module and changed the activate and deactivate events in the report it still did not work.
I am new at this (Brand new) so please excuse my ignorance. Could it have anything to do with the fact that the Function is names "IsFormOpen" and the events call "IsFormLoaded"? That's just a stab in the dark. I am getting two error messages that say, "can't find the macro If IsFormOpen(frmInput) Then Forms(frmInput)"
and "can't find the macro Forms(frmInput)"
should there be a macro, because I put them in a module like you suggested.
Thanks again.
 

Users who are viewing this thread

Back
Top Bottom