Hi Jim,
Here is a past post of mine on this subject. It should help I believe:
1. Create a new standard module and copy/paste this code:
Public Function funcSetStartupForm( _
strForm As String)
On Error GoTo ErrorPoint
CurrentDb().Properties("StartupForm") = _
strForm
ExitPoint:
Exit Function
ErrorPoint:
If Err = 3270 Then
' Property was not found
Dim db As DAO.Database
Dim prop As DAO.Property
Set db = CurrentDb()
Set prop = db.CreateProperty("StartupForm", _
dbText, "(none)")
db.Properties.Append prop
Resume Next
End If
End Function
2. Make sure to set a reference to the DAO object library
if you are using Access 2000 or 2002 (97 or 2003 should
already be set).
3. Compile the code and save the module as
modSetStartUpForm
4. Somewhere in your code you simply call the function
like so:
funcSetStartupForm ("NameofTheFormHere")
Hope that helps,