I have a form with some combo boxes and I want to verify they are filled prior to a command button executing some code.
One of the combo boxes has 43 options to select from and the combo box stores the ID as a number.
The issues is, when I select an option that has an ID 10 or greater, it will not move forward but executes the "Then" portion with the msgbox.
How do I fix this?
One of the combo boxes has 43 options to select from and the combo box stores the ID as a number.
The issues is, when I select an option that has an ID 10 or greater, it will not move forward but executes the "Then" portion with the msgbox.
How do I fix this?
Code:
Private Sub AutoGenerate_DblClick(Cancel As Integer)
If (Len(Me.cboProjectFY & vbNullString) And Len(Me.cboLocation & vbNullString) And Len(Me.cboProjectType & vbNullString) And _
Len(Me.cboFacilityType & vbNullString) And Len(Me.cboFundingType & vbNullString)) = 0 Then
MsgBox "Fill out Bergen Number details prior to clicking."
Else
Call fncUpdateBerger
End If
End Sub