Set subform record enable/no enabled

E

EddWood

Hi Guys,

I have a subform bound to a query. As part of that query is a checkbox,
[chkSelect] to allow users to select or de-select items on the subform, what
I am looking to do is, if the checkbox is selected I want the record to be
set as enabled = no if the record is not selected I want enabled = yes

The subform is layout out as a form not datasheet.

Thanks
 
T

Tom van Stiphout

On Thu, 4 Feb 2010 14:02:32 -0000, "EddWood"

Try this: in the Form_Current event write:
Me.AllowEdits = Not Me!chkSelect

-Tom.
Microsoft Access MVP
 
E

EddWood

Hi Tom,

Many thanks for that, worked perfectly, thank you

Tom van Stiphout said:
On Thu, 4 Feb 2010 14:02:32 -0000, "EddWood"

Try this: in the Form_Current event write:
Me.AllowEdits = Not Me!chkSelect

-Tom.
Microsoft Access MVP

Hi Guys,

I have a subform bound to a query. As part of that query is a checkbox,
[chkSelect] to allow users to select or de-select items on the subform,
what
I am looking to do is, if the checkbox is selected I want the record to be
set as enabled = no if the record is not selected I want enabled = yes

The subform is layout out as a form not datasheet.

Thanks
 

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