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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top