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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Start-up Options via Code 1

Status
Not open for further replies.

infinitx

Technical User
Feb 26, 2004
212
US
Hi,

How would I change what form loads during start-up using a code?

Thanks in advance!
 
use the following code
Code:
currentdb.Properties("StartupForm") = "Your Form"

Make a error trap for err.number 3270 (Property not found)
enter the following code for the error handler:
Code:
Set prp = dbs.CreateProperty("StartupForm", dbtext, "Your Form")
dbs.Properties.Append prp
Resume Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top