skull_eagle
Board Regular
- Joined
- Mar 25, 2011
- Messages
- 89
Hi,
I'm struggling with the logic with this one.
Both IF statements work fine on their own, combined I'm getting MtrxSub sub called up to 4 times.
Thank you
I'm struggling with the logic with this one.
Both IF statements work fine on their own, combined I'm getting MtrxSub sub called up to 4 times.
Thank you
VBA Code:
Private Sub Matrix_BTN_Click()
If Search_Form.Controls("TB_71") <> "" Then
Worksheets("Admin").Range("P8").Value = Search_Form.Controls("TB_71")
Call MtrxSub
Else
MsgBox "Please enter a Job Number"
Exit Sub
End If
If Search_Form.Controls("Results_1").Caption <> "0" Then
Worksheets("Admin").Range("P8").Value = Search_Form.Controls("TB_71")
Call MtrxSub
Else
MsgBox "No results to display"
Exit Sub
End If
End Sub