Re: Only displaying the form window
- From: "Dirk Goldgar" <dg@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 11 Jun 2005 01:55:29 -0400
"geno" <geno@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6D061B8D-BA4A-4DEF-BA3E-6D295082F9F9@xxxxxxxxxxxxx
> I got it. Thank so much.
>
> I was trying the codes in the sample database from access 2003
> "northwind" to see if how they work. This database has a startup
> form, before it goes to the mainswitchboard. I was puting the codes
> in "startup" form module, and it was not working, it was still
> showing the access application window. So i decide to delete the
> startup form and just use the main switchboard, i put the codes and
> Kaplann!! it work.
>
> thanks
>
> by the way do you know how to get it to work in a situation like this
> database.
I don't have Access 2003 installed, but if its version of the Northwind
database is like the one for Access 2002, the startup form calls a
function named OpenStartup from directly from its OnOpen property. You
can modify that function, adding these lines before the function exits:
Forms!Startup.Visible = True
DoEvents
fSetAccessWindow SW_HIDE
You should not use the code I posted for the form's Close event, because
you won't want to make the application window visible again when the
Startup form is closed.
You'll also need to make the [Main Switchboard] form PopUp and Modal, so
that when the Startup form closes and opens that form, it will be
visible event though the Access application window is hidden. I've
tried this in my Access 2002 version, and it works. In general, any
form you want to display will have to have its PopUp and Modal
properties set to Yes. Reports are a more difficult propostion, and I
don't remember offhand what te solution is for them.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
.
- References:
- Only displaying the form window
- From: geno
- Re: Only displaying the form window
- From: Dirk Goldgar
- Re: Only displaying the form window
- From: geno
- Re: Only displaying the form window
- From: Dirk Goldgar
- Re: Only displaying the form window
- From: geno
- Re: Only displaying the form window
- From: Dirk Goldgar
- Re: Only displaying the form window
- From: geno
- Only displaying the form window
- Prev by Date: Re: Before Update Event
- Next by Date: Re: If Not IsNull Code not working, Please Help!
- Previous by thread: Re: Only displaying the form window
- Next by thread: on KEYDOWN ON SET FOCUS
- Index(es):
Relevant Pages
|