
Originally Posted by
Baldeagle
Thanks for the suggestion. Maybe I haven't followed your coding correctly but I am getting a syntax error. The following is the full coding that I have. The first section works OK but the second doesn't.
Private Sub List36_LostFocus()
If [Forms]![Enter New Receipts]![Type of Receipt] = 2 And [Forms]![Enter New Receipts]![GA Dec?] = 0 Then
MsgBox "Is there a Gift Aid Declaration? If so Tick the Gift Aid Declaration box."
End If
InStr([Forms]![Enter New Receipts]![Code], "G") = 0 Then MsgBox "Do you also need to change the Donor's Code to include 'G'?"
End Sub
As I indicated in my first post, I want the second message to appear if there is no 'G' in Code - there can be a variety of possibilities such as 'GJ' 'MGJ' or simply 'G'.
Any further help would be appreciated.