Wiz47
Learning by inches ...
- Local time
- Today, 03:16
- Joined
- Nov 30, 2006
- Messages
- 274
It seems to me that my syntax is correct. Why the error?
Compile error: Else without if
Compile error: Else without if
Private Sub Command3_Click()
Dim strForm As String
If Me.CboForm = "Form 1" Then strForm = "Form1"
Else
strForm = "Form2"
End If
DoCmd.OpenForm strForm
End Sub