PC Review


Reply
Thread Tools Rate Thread

Automatically open a form

 
 
James
Guest
Posts: n/a
 
      11th Aug 2008
I have a MS Access 2003 application and the users need the ability to design
their own reports. I have 3 popup, modal forms...frm_main_menu,
frm_administration and frm_reports. On the frm_reports form I have a command
button with the following code:
DoCmd.RunCommand acCmdNewObjectReport
DoCmd.Close acForm, "frm_reports"
DoCmd.Close acForm, "frm_administration"
DoCmd.Close acForm, "frm_main_menu"
This opens the new report wizard and closes all the open forms.
My problem is after they are done creating the new report and closing the
design view I would like to be able to automatically reopen the form
frm_main_menu.
Is their a way to do this? Thanks.


 
Reply With Quote
 
 
 
 
Keith Wilby
Guest
Posts: n/a
 
      11th Aug 2008
"James" <(E-Mail Removed)> wrote in message
news:549EE1F2-3CDB-4172-8514-(E-Mail Removed)...
>I have a MS Access 2003 application and the users need the ability to
>design
> their own reports. I have 3 popup, modal forms...frm_main_menu,
> frm_administration and frm_reports. On the frm_reports form I have a
> command
> button with the following code:
> DoCmd.RunCommand acCmdNewObjectReport
> DoCmd.Close acForm, "frm_reports"
> DoCmd.Close acForm, "frm_administration"
> DoCmd.Close acForm, "frm_main_menu"
> This opens the new report wizard and closes all the open forms.
> My problem is after they are done creating the new report and closing the
> design view I would like to be able to automatically reopen the form
> frm_main_menu.
> Is their a way to do this? Thanks.
>
>


Why not just keep "frm_main_menu" open?

Keith.

 
Reply With Quote
 
James
Guest
Posts: n/a
 
      11th Aug 2008
I cannot keep the frm_main_menu open because it goes in front of the design
view, so I need to close it (or hide it.) But either way, when the design
view is closed the form will then have to open or become visible.


"Keith Wilby" wrote:

> "James" <(E-Mail Removed)> wrote in message
> news:549EE1F2-3CDB-4172-8514-(E-Mail Removed)...
> >I have a MS Access 2003 application and the users need the ability to
> >design
> > their own reports. I have 3 popup, modal forms...frm_main_menu,
> > frm_administration and frm_reports. On the frm_reports form I have a
> > command
> > button with the following code:
> > DoCmd.RunCommand acCmdNewObjectReport
> > DoCmd.Close acForm, "frm_reports"
> > DoCmd.Close acForm, "frm_administration"
> > DoCmd.Close acForm, "frm_main_menu"
> > This opens the new report wizard and closes all the open forms.
> > My problem is after they are done creating the new report and closing the
> > design view I would like to be able to automatically reopen the form
> > frm_main_menu.
> > Is their a way to do this? Thanks.
> >
> >

>
> Why not just keep "frm_main_menu" open?
>
> Keith.
>
>

 
Reply With Quote
 
Keith Wilby
Guest
Posts: n/a
 
      12th Aug 2008
"James" <(E-Mail Removed)> wrote in message
news:FD74BD34-CEFF-484A-AE39-(E-Mail Removed)...
>I cannot keep the frm_main_menu open because it goes in front of the design
> view,


Why is that? Might it be a popup/modal issue which you can change so that
the report design view goes in front?

> so I need to close it (or hide it.) But either way, when the design
> view is closed the form will then have to open or become visible.
>


Events only fire at runtime and not in the design environment. If they did
then it would be chaos for the developer. Allowing end users the ability to
design is always going to be fraught with difficulties, I would suggest
giving them another "open" front end (ie the db window is visible) with
read-only permissions to the data but with design permissions on new
reports.

Regards,
Keith.

 
Reply With Quote
 
James
Guest
Posts: n/a
 
      13th Aug 2008
It is a popup/modal issue - by design the forms are set to popup and modal.
they stay in front of the design view.

"Keith Wilby" wrote:

> "James" <(E-Mail Removed)> wrote in message
> news:FD74BD34-CEFF-484A-AE39-(E-Mail Removed)...
> >I cannot keep the frm_main_menu open because it goes in front of the design
> > view,

>
> Why is that? Might it be a popup/modal issue which you can change so that
> the report design view goes in front?
>
> > so I need to close it (or hide it.) But either way, when the design
> > view is closed the form will then have to open or become visible.
> >

>
> Events only fire at runtime and not in the design environment. If they did
> then it would be chaos for the developer. Allowing end users the ability to
> design is always going to be fraught with difficulties, I would suggest
> giving them another "open" front end (ie the db window is visible) with
> read-only permissions to the data but with design permissions on new
> reports.
>
> Regards,
> Keith.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Automatically open up another form Keith Wilby Microsoft Access Form Coding 1 12th Jan 2007 08:47 AM
Re: Automatically open up another form Stefan Hoffmann Microsoft Access Form Coding 0 11th Jan 2007 11:56 AM
Automatically open a form =?Utf-8?B?RGF2ZQ==?= Microsoft Access Form Coding 2 25th May 2006 03:20 PM
open form automatically when db is opened =?Utf-8?B?UmF5IE1lYWQ=?= Microsoft Access VBA Modules 3 17th Jun 2005 01:35 PM
Automatically open a pop up form based on info from another form Deb Struble Microsoft Access Forms 1 17th Sep 2004 07:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 PM.