M
Mike
I have a form with two check boxes PPL & DLP both
controls are in tblReviewH1
on enabling one I want the other to disappear.
I am attempting to use Dlookup to validate the state of
the checkbox which in part works
but changes the property for nearly all the records.....
The table has a unique reference OrderNo for each record
(txt_Ono)
Is there a way that I could adapt the following code to
refer to the OrderNo
and by that get the right result
Private Sub PPL_AfterUpdate()
If DLookup("PPL = True", "tblReviewH1") Then
Me!DLP.Visible = False
Else: If DLookup("PPL = False", "tblReviewH1") Then Me!
DLP.Visible = True
End If
End Sub
Or as usual have I gone in the wrong direction
Would be very grateful if any assistance
Mike
controls are in tblReviewH1
on enabling one I want the other to disappear.
I am attempting to use Dlookup to validate the state of
the checkbox which in part works
but changes the property for nearly all the records.....
The table has a unique reference OrderNo for each record
(txt_Ono)
Is there a way that I could adapt the following code to
refer to the OrderNo
and by that get the right result
Private Sub PPL_AfterUpdate()
If DLookup("PPL = True", "tblReviewH1") Then
Me!DLP.Visible = False
Else: If DLookup("PPL = False", "tblReviewH1") Then Me!
DLP.Visible = True
End If
End Sub
Or as usual have I gone in the wrong direction
Would be very grateful if any assistance
Mike