Mackbear
Registered User.
- Local time
- Yesterday, 18:23
- Joined
- Apr 2, 2019
- Messages
- 168
Hi Good day!
Please help, I cannot figure out why I am getting type mismatch error here. pbrootcause1 is a combobox with a query as a rowsource, not sure if this is what is causing the problem. When I go on debug, all the variables have values. I have set them all up as a string, not sure what was missing.
Dim pbrc1, rcval1, rcval2, rcval3, rcval4, rcval5, rcval6, rcval7, rcval8 As String
pbrc1 = Me.pbrootcause1.Text
rcval1 = "Invalid Notice"
rcval2 = "Invalid Late Fee"
rcval3 = "Invalid Past Due"
rcval4 = "Prior to Live Balance"
rcval5 = "Vendor Issue"
rcval6 = "Setup Issue"
rcval7 = "Processing Issue"
rcval8 = "Payment Issue"
If pbrc1 = rcval1 Or rcval2 Or rcval3 Then
Me.pbrootcause2.Enabled = False
Me.pbrootcause3.Enabled = False
Me.pbrootcause4.Enabled = False
Else
If pbrc1 = rcval4 Or rcval5 Then
Me.pbrootcause3.Enabled = False
Me.pbrootcause4.Enabled = False
Else
If pbrc1 = rcval6 Or rcval7 Or rcval8 Then
Me.pbrootcause4.Enabled = False
End If
End If
End If
Me.pbrootcause2.Requery
Looking forward to your help, thanks in advance!
Please help, I cannot figure out why I am getting type mismatch error here. pbrootcause1 is a combobox with a query as a rowsource, not sure if this is what is causing the problem. When I go on debug, all the variables have values. I have set them all up as a string, not sure what was missing.
Dim pbrc1, rcval1, rcval2, rcval3, rcval4, rcval5, rcval6, rcval7, rcval8 As String
pbrc1 = Me.pbrootcause1.Text
rcval1 = "Invalid Notice"
rcval2 = "Invalid Late Fee"
rcval3 = "Invalid Past Due"
rcval4 = "Prior to Live Balance"
rcval5 = "Vendor Issue"
rcval6 = "Setup Issue"
rcval7 = "Processing Issue"
rcval8 = "Payment Issue"
If pbrc1 = rcval1 Or rcval2 Or rcval3 Then
Me.pbrootcause2.Enabled = False
Me.pbrootcause3.Enabled = False
Me.pbrootcause4.Enabled = False
Else
If pbrc1 = rcval4 Or rcval5 Then
Me.pbrootcause3.Enabled = False
Me.pbrootcause4.Enabled = False
Else
If pbrc1 = rcval6 Or rcval7 Or rcval8 Then
Me.pbrootcause4.Enabled = False
End If
End If
End If
Me.pbrootcause2.Requery
Looking forward to your help, thanks in advance!