Sam Summers
Registered User.
- Local time
- Today, 05:19
- Joined
- Sep 17, 2001
- Messages
- 939
Hi guys,
I'm not awake this morning and I am trying to do as the title says but seeing as I haven't been using Access for a while I just cant get my head round even this simple thing!!!!
This is the code I am using but at the moment I am getting the error - Else without an If?
Private Sub Form_Open(Cancel As Integer)
InsideHeight = 5000
InsideWidth = 7695
If Me.ClientName.Text = "" Then DoCmd.Close
Else
End If
End Sub
I have tried various solutions but I just chased the problem around?
Thank you in advance for helping my stupidity
I'm not awake this morning and I am trying to do as the title says but seeing as I haven't been using Access for a while I just cant get my head round even this simple thing!!!!
This is the code I am using but at the moment I am getting the error - Else without an If?
Private Sub Form_Open(Cancel As Integer)
InsideHeight = 5000
InsideWidth = 7695
If Me.ClientName.Text = "" Then DoCmd.Close
Else
End If
End Sub
I have tried various solutions but I just chased the problem around?
Thank you in advance for helping my stupidity