G
Guest
I have an orders mainform and an OrderDetails subform. The subform is
continuous.
In the subform I have a checkbox called "Received" and a text box called
"ReceievedDate". What I want to happen is that when the checkbox is not
checked the DateReceived textbox is de-enabled. But when it is checked the
DateReceived textbox becomes enabled.
I have this code
Private Sub Received_AfterUpdate()
If Me.Received = True Then Me.ctrl_DateReceived.Enabled = True Else
Me.ctrl_DateReceived.Enabled = False
End Sub
But when any checkbox is checked ALL of the DateReceived textboxes in the
continuous form become enabled and not just the textbox relating to the
individual specific checkbox?
How can I make sure that checking a checkbox will only influence the
DateReceived textbox for that record?
continuous.
In the subform I have a checkbox called "Received" and a text box called
"ReceievedDate". What I want to happen is that when the checkbox is not
checked the DateReceived textbox is de-enabled. But when it is checked the
DateReceived textbox becomes enabled.
I have this code
Private Sub Received_AfterUpdate()
If Me.Received = True Then Me.ctrl_DateReceived.Enabled = True Else
Me.ctrl_DateReceived.Enabled = False
End Sub
But when any checkbox is checked ALL of the DateReceived textboxes in the
continuous form become enabled and not just the textbox relating to the
individual specific checkbox?
How can I make sure that checking a checkbox will only influence the
DateReceived textbox for that record?