Hello,
I am hoping that someone out there can steer me in the right
direction.
Here is the scenario:
I have a main form and a subform
within it. The subform contains two combo boxes:
cboUnitDefects (contains
multiple options to describe product failures)
cboFailureLocation (contains
multiple options to define a physical location)
What I am looking to do
is:
If cboUnitDefects is populated AND cboFailureLocation is
not, a message box requiring the population of cboFailureLocation comes up
and tells the operator to select a failure location. So far, the following code
was used with no success within the subform's "Before Update"
property:
Private Sub Form_BeforeUpdate(Cancel As Integer)
If
(Len(Me.cboFailure_Location & vbNullString) = False) And
(Len(Me.cboUnitDefects & vbNullString) = True) Then
MsgBox "Please Enter
a Failure Location", vbOKOnly
Cancel = True
End If
End Sub
Thank
you for your help in advance!
--Phill