Enable/Disable button on Tabular Form

G

galneweinhaw

I have a tabular form with a tick box and a button. when the button is checked I want the button to be enabled. unfortunately, when ANY of the records tick boxes are ticked/unticked ALL the buttons enable/disable.... how do I make it so each button responds to it's own record's tick box?

here is the code I used in AfterUpdate:

Dim boolBaked As Boolean
boolBaked = Me!Baked
If (boolBaked = True) Then
Me!btnEditBakeDetails.Enabled = True
End If
If (boolBaked = False) Then
Me!btnEditBakeDetails.Enabled = False
End If
 
Top