unbound checkbox in datasheet view?

G

Guest

I have a form with a single unbound checkbox with code behind it's
AfterUpdate event that updates the value of a bound field; this works as
expected in form view but not datasheet view.

The checkbox is replicated for each datasheet record as expected, but when a
single records checkbox is clicked all of the records are simultaneously
checked/unchecked (although the code is still correctly applied to only the
current record). Is there a way to control the displayed checkbox
independently for each record without making it a bound control?

Your suggestions are appreciated.
 
F

fredg

I have a form with a single unbound checkbox with code behind it's
AfterUpdate event that updates the value of a bound field; this works as
expected in form view but not datasheet view.

The checkbox is replicated for each datasheet record as expected, but when a
single records checkbox is clicked all of the records are simultaneously
checked/unchecked (although the code is still correctly applied to only the
current record). Is there a way to control the displayed checkbox
independently for each record without making it a bound control?

Your suggestions are appreciated.

That's not how you do it.
You need to first add a new check box field to your underlying table.
Then add it to the form so that it is BOUND to that field in the
table. No Update code needed.
 

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