G
Guest
Hi
Can someone help me get this code right below: I have 3 comboboxes on a
form, what I need is when all the combo boxes have had a value selected to
them to apply the Select Case statement below to create the variable strDate.
Thanks
Private Sub cboContractStatus_AfterUpdate()
Dim StrDate As Long
If IsNull(cboContractStatus) And IsNull(cboNumberSelect) And
IsNull(cboTimeperiod) Then
End If
Exit Sub
Else
Select Case cboTimeperiod.ListIndex
Case 0
StrDate = cboNumberSelect * 1
Case 1
StrDate = cboNumberSelect * 7
Case 2
StrDate = cboNumberSelect * 30
MsgBox (StrDate)
End If
End Sub
Can someone help me get this code right below: I have 3 comboboxes on a
form, what I need is when all the combo boxes have had a value selected to
them to apply the Select Case statement below to create the variable strDate.
Thanks
Private Sub cboContractStatus_AfterUpdate()
Dim StrDate As Long
If IsNull(cboContractStatus) And IsNull(cboNumberSelect) And
IsNull(cboTimeperiod) Then
End If
Exit Sub
Else
Select Case cboTimeperiod.ListIndex
Case 0
StrDate = cboNumberSelect * 1
Case 1
StrDate = cboNumberSelect * 7
Case 2
StrDate = cboNumberSelect * 30
MsgBox (StrDate)
End If
End Sub