Set checkbox to true on command button click

G

Guest

I posted yesterday, and someone answered, but it looks like the post got
deleted somehow. I have a checkbox named count and a command button named
update. I would like to check the box when the update command button is
clicked. I have tried these three things, but I get a run-time error saying
the property is set to read-only.

update_on click
me.count = true

update_on click
count = true

update_on click
if me.count = false
me.count = true
else
me.count = false
end if

What am I doing wrong?
 
C

Carl Rapson

A suggestion: try renaming your checkbox control to something other than
"count", maybe "chkCount". There could be a conflict with the name "count",
which is a key word in some circumstances.

Carl Rapson
 

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