Hello,
I'm feeling particularly baffled this morning. I could have sworn there was a "Visible" option in the properties window for forms. I'm in Access 2003. Here is the simple task i am trying to accomplish...
When the database opens, frmOpen opens. I want frmOpen to be hidden. Simple, right? I thought so... This is something I've done numerous times before - granted the last time was about 6 months ago on Access 2002.
This is the code that I currently have attached to the form.
I've tried adding: Me.Forms.Visible = False to the codebefore the SQL runs. This didn't work. Please don't hesitate to point out the obvious...
TIA,
Elysynn
I'm feeling particularly baffled this morning. I could have sworn there was a "Visible" option in the properties window for forms. I'm in Access 2003. Here is the simple task i am trying to accomplish...
When the database opens, frmOpen opens. I want frmOpen to be hidden. Simple, right? I thought so... This is something I've done numerous times before - granted the last time was about 6 months ago on Access 2002.
This is the code that I currently have attached to the form.
Code:
Private Sub Form_Open(Cancel As Integer)
Dim strLogStatus As String
Dim datLogDate As Date
gblUser = Environ("UserName")
strLogStatus = "In"
datLogDate = Now()
DoCmd.SetWarnings False
DoCmd.RunSQL "INSERT INTO tblUserLog(User, LogStatus, LogTime)" & _
" VALUES ('" & gblUser & "', '" & strLogStatus & "', #" & datLogDate & "#);"
DoCmd.SetWarnings True
DoCmd.OpenForm "frmMenuMain"
End Sub
I've tried adding: Me.Forms.Visible = False to the codebefore the SQL runs. This didn't work. Please don't hesitate to point out the obvious...
TIA,
Elysynn