K
kia.martin
I'm trying to get a message box to show when the user makes changes to
the phase combo box of my form. I put break points in the code and it
goes into it but nothing displays. I just want the box to pop up when
the other combo boxes are empty but it doesnt seem to be happening. Any
help please?
Private Sub CboPhase_Change()
'********
'* Combo Box validation
'* 8/1/06 kmartin
'********
If CboPhase = 0 Then
DoCmd.Requery
Else
If CboJob = " " Then
MsgBox "Job Number must be entered"
CboJob.SetFocus
DoCmd.Requery
End If
If CboCat = " " Then
MsgBox "Category must be entered"
CboCat.SetFocus
DoCmd.Requery
End If
End If
dateupdated = ReturnCurrentDate
changeuser = ReturnCurrentUser
End Sub
the phase combo box of my form. I put break points in the code and it
goes into it but nothing displays. I just want the box to pop up when
the other combo boxes are empty but it doesnt seem to be happening. Any
help please?
Private Sub CboPhase_Change()
'********
'* Combo Box validation
'* 8/1/06 kmartin
'********
If CboPhase = 0 Then
DoCmd.Requery
Else
If CboJob = " " Then
MsgBox "Job Number must be entered"
CboJob.SetFocus
DoCmd.Requery
End If
If CboCat = " " Then
MsgBox "Category must be entered"
CboCat.SetFocus
DoCmd.Requery
End If
End If
dateupdated = ReturnCurrentDate
changeuser = ReturnCurrentUser
End Sub