Set checkbox to true on command button click

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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
 
Back
Top