enable button in tabular form

T

tylerecouture

I have a tabular form with a tick box and button for each record. I want the tick box to enable/disable the button. Right now when ANY record's tick box is checked/unchecked ALL the buttons enable/disable.... how do I make it so each button responds to it's own record's tick box?


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
 
C

Chris Eberhart

I do this with conditional formatting on the field which I
wish to enable/disable.
 
V

Van T. Dinh

AFAIK, you can't. What you see is many instances of the
*same* CommandButton. Hence all instances are either all
Enabled or all Disabled.

HTH
Van T. Dinh
MVP (Access)



-----Original Message-----
I have a tabular form with a tick box and button for each
record. I want the tick box to enable/disable the
button. Right now when ANY record's tick box is
checked/unchecked ALL the buttons enable/disable.... how
do I make it so each button responds to it's own record's
tick box?
 

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