andy_dyer
Registered User.
- Local time
- Today, 03:03
- Joined
- Jul 2, 2003
- Messages
- 806
It didn't like the "Else" as it said there was no "If", there was so I thought I'd change it to spell it out to the code what I wanted and make 2 "If"s.
Still doesn't like it as it now syas that the first End If doesn't have a Block If??
What am I doing wrong??
If .RecordCount > 0 Then
Dim objWord As Word.Application
Set objWord = CreateObject("Word.Application")
With objWord
.Visible = True
.Documents.Open ("C:\Address Book\Address Book - Birthday Month List.doc")
End If
If .RecordCount = 0 Then
DoCmd.OpenForm "frmError1"
End If
Still doesn't like it as it now syas that the first End If doesn't have a Block If??
What am I doing wrong??
If .RecordCount > 0 Then
Dim objWord As Word.Application
Set objWord = CreateObject("Word.Application")
With objWord
.Visible = True
.Documents.Open ("C:\Address Book\Address Book - Birthday Month List.doc")
End If
If .RecordCount = 0 Then
DoCmd.OpenForm "frmError1"
End If