I am not that good using code to make things work and i just can't figure this out.
I need to create a message alert based on two fields. If the fields (GuestFirstName and GuestLastName) equal a specific value (i.e. John Smith), then a message needs to show up that reads "Offering Full Credit Reports". next to the GuestID field.
I have struggled with this and can't figure out what it is i'm doing wrong... code below:
Private Sub Form_GotFocus(value As Long)
'Shows comment next to GuestID
If GuestFirstName = John Then
If GuestLastName = Smith Then
lblTrip.Visible = True
Else
lblTrip.Visible = False
End If
End Sub
I've got the text listed as lblTrip set and ready to go. Like I said, i'm not that good with code so any help would be appreciated.
"Unless you try to do something beyond what you have already mastered, you will never grow." Ralph Waldo Emerson
I need to create a message alert based on two fields. If the fields (GuestFirstName and GuestLastName) equal a specific value (i.e. John Smith), then a message needs to show up that reads "Offering Full Credit Reports". next to the GuestID field.
I have struggled with this and can't figure out what it is i'm doing wrong... code below:
Private Sub Form_GotFocus(value As Long)
'Shows comment next to GuestID
If GuestFirstName = John Then
If GuestLastName = Smith Then
lblTrip.Visible = True
Else
lblTrip.Visible = False
End If
End Sub
I've got the text listed as lblTrip set and ready to go. Like I said, i'm not that good with code so any help would be appreciated.
"Unless you try to do something beyond what you have already mastered, you will never grow." Ralph Waldo Emerson