gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I have a combo box on a form. When the user changes selection I want a date to populate another field on the same form as the combo box. this code is not working. Nothing happens when I change the combo selection
Help. Please!
Code:
Private Sub Combo4_Change()
If TextQuoteExpDate01 = "All Quotes" Then
TextQuoteExpDate01 = "*"
Else
If TextQuoteExpDate01 = "Only Valid Quote" Then
TextQuoteExpDate01 = Now()
Else
If TextQuoteExpDate01 = "Current and Expired within 30 Days" Then
TextQuoteExpDate01 = Now() - 29
Else
If TextQuoteExpDate01 = "Current and Expired within 60 Days" Then
TextQuoteExpDate01 = Now() - 59
Else
If TextQuoteExpDate01 = "Current and Expired within 90 Days" Then
TextQuoteExpDate01 = Now() - 89
Else
If TextQuoteExpDate01 = "Current and Expired within 180 Days" Then
TextQuoteExpDate01 = Now() - 179
Else
If TextQuoteExpDate01 = "Current and Expired within 360 Days" Then
TextQuoteExpDate01 = Now() - 359
Else
End If
End If
End If
End If
End If
End If
End If
End Sub
Help. Please!