Basically, what I want to happen, is when a user selects a certain option from cboStatus and cboResolutionDate is blank, a message will pop up and inform the user that they need to enter a resolution date.
I can quite happily make a message box pop up when a user selects the appropriate status but can't figure out how to combine this with cboResolutionDate being blank/null/empty.
This is one of my attempts...
Expand|Select|Wrap|Line Numbers
- Private Sub cboStatus_AfterUpdate()
- If Me!cboResolutionDate = "" And Me!cboStatus.ListIndex = 3 Or Me!cboResolutionDate = "" And Me!cboStatus.ListIndex = 4 Then
- MsgBox "Please enter a closure date", vbOKOnly, "Closure date missing!"
- End If
- End Sub
I was also thinking I could throw in a SetFocus to cboResolutionDate?
Thanks in advance!