PC Review


Reply
Thread Tools Rate Thread

How to change Startup form by code ?

 
 
Albert
Guest
Posts: n/a
 
      30th Jan 2004
TIA,
Albert


 
Reply With Quote
 
 
 
 
Wayne Morgan
Guest
Posts: n/a
 
      30th Jan 2004
If you have already set the startup form, you can change it by:

CurrentDb.Properties("StartupForm")="Form1"

The Help file is misleading here. It says you have to set it once in the
Startup Dialog before you can do this or you have to add this property using
code before you can do this. However, just using it once doesn't get the job
done, the property must currently be set. If you've set it back to None
(since you're setting it back, it has been set once), the property gets lost
and you'll have to also add it through code.


--
Wayne Morgan
MS Access MVP


"Albert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> TIA,
> Albert
>
>



 
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
I have some code which loads a form in Excel on startup vbnewbie Microsoft Excel Programming 2 5th May 2009 05:38 PM
Code to change Startup settings JimP Microsoft Access VBA Modules 1 27th Nov 2007 05:38 AM
How to change Access Startup form from a form combo box? jhutchings@eadmotors.com Microsoft Access 4 20th Jun 2006 01:12 PM
Startup code calling for a Form I can't find =?Utf-8?B?TUlNRg==?= Microsoft Access Forms 9 18th Aug 2005 05:01 PM
HOW DO I ACCESS STARTUP TO CHANGE A FORM NAME WHICH IS INCORRECT. =?Utf-8?B?RnJlZGJv?= Microsoft Access Getting Started 1 16th Apr 2005 10:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:56 PM.