I have a form for the user to select the type of DB form he wishes. There are two Options.
If the user selects the first command button, it will
take him to the switchboard form. I would also like it to enable the second command button (Option2) on the switchboard form.
Private Sub CmdButton_Click()
Dim strControl As String
Dim strDocName As String
strControl = "Option2"
DoCmd.OpenForm strDocName
Option2.Enable = False
(When I run this it states: Object variable or with block variable not set). Please help
If the user selects the first command button, it will
take him to the switchboard form. I would also like it to enable the second command button (Option2) on the switchboard form.
Private Sub CmdButton_Click()
Dim strControl As String
Dim strDocName As String
strControl = "Option2"
DoCmd.OpenForm strDocName
Option2.Enable = False
(When I run this it states: Object variable or with block variable not set). Please help