Hello,
I am creating a start screen for a database an I get the following error: Compile error: Invalid use of property
My code is following:
Option Compare Database
Option Explicit
Private Sub cmdNext_Click()
DoCmd.Close acForm, "frmStart", acSaveYes
End Sub
Private Sub Form_Load()
Dim frm As Form
'The standard menu bar is shown
MenuBar False
Set frm = Form_frmStart
If frm.StartScreen = False Then
DoCmd.Close acForm, "frmStart"
End If
Set frm = Nothing
End Sub
What is wrong?
Thanks.
I am creating a start screen for a database an I get the following error: Compile error: Invalid use of property
My code is following:
Option Compare Database
Option Explicit
Private Sub cmdNext_Click()
DoCmd.Close acForm, "frmStart", acSaveYes
End Sub
Private Sub Form_Load()
Dim frm As Form
'The standard menu bar is shown
MenuBar False
Set frm = Form_frmStart
If frm.StartScreen = False Then
DoCmd.Close acForm, "frmStart"
End If
Set frm = Nothing
End Sub
What is wrong?
Thanks.