Hi
I'm struggling with the logical check in my other code and have created small If statement to check values returned in MsgBox.
The problem is whenever Adviser is blank I get VBA returning the Else part of the code. Also when the IFA's name is entered it does work properly with returning adviser's name.
Any help would be much appreciated.
I'm struggling with the logical check in my other code and have created small If statement to check values returned in MsgBox.
The problem is whenever Adviser is blank I get VBA returning the Else part of the code. Also when the IFA's name is entered it does work properly with returning adviser's name.
Any help would be much appreciated.
Code:
Private Sub Command238_Click()
Dim Adviser As String
Adviser = IntroducedBy.Column(1)
If IsNull(Adviser) Then
MsgBox "Please update IFA's name", vbOKOnly, "IFA Details"
Else
MsgBox "IFA's first name is: " & Adviser, vbOKOnly, "IFA Details"
End If
End Sub