<HR style="BACKGROUND-COLOR: #ffffff; COLOR: #ffffff" SIZE=1> <!-- / icon and title --><!-- message -->
Hello
I am getting error message cannot end sub
Please help if possible
Dim file1 As Object
Dim filecount1 As Long
With CreateObject("Scripting.FileSystemObject").GetFolder("P:\")
For Each file In .Files
If file.Name Like "*" Then
filecount1 = filecount + 1
End If
Next file
End With
Strbodytext2 = "Option 2"
Strbodytext1 = "Option 1"
If filecount1 = 0 Then
DoCmd.SendObject , "", "", "", "", "Jonathan Pernice", "Test", Strbodytext1, False, ""
Else
DoCmd.SendObject , "", "", "", "", "Jonathan Pernice", "Test", Strbodytext2, False, ""
End Sub
Hello
I am getting error message cannot end sub
Please help if possible
Dim file1 As Object
Dim filecount1 As Long
With CreateObject("Scripting.FileSystemObject").GetFolder("P:\")
For Each file In .Files
If file.Name Like "*" Then
filecount1 = filecount + 1
End If
Next file
End With
Strbodytext2 = "Option 2"
Strbodytext1 = "Option 1"
If filecount1 = 0 Then
DoCmd.SendObject , "", "", "", "", "Jonathan Pernice", "Test", Strbodytext1, False, ""
Else
DoCmd.SendObject , "", "", "", "", "Jonathan Pernice", "Test", Strbodytext2, False, ""
End Sub