Checkbox

G

Guest

Hello, i am trying to check a checkbox with the click action of a command
button but i can seem to be able to do this.

i have entered

Me.[checkbox] = Yes

but this unchecks a checked box but does not check a unchecked box, i want
to achieve the opposite. i know i am missing something simple. can someone
help me.

thank you
 
G

Guest

Me.[checkbox] = Not Me.[checkbox]
If it is True it will change to False
If it is False it will change to True
 
G

Guest

Thank you, thats great !

Sandra Daigle said:
Try this:

me.checkbox=true

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.

Hello, i am trying to check a checkbox with the click action of a
command button but i can seem to be able to do this.

i have entered

Me.[checkbox] = Yes

but this unchecks a checked box but does not check a unchecked box, i
want to achieve the opposite. i know i am missing something simple.
can someone help me.

thank you
 
G

Guest

Thanks for the response, really appreciate your help, thank you

Klatuu said:
Me.[checkbox] = Not Me.[checkbox]
If it is True it will change to False
If it is False it will change to True

Moody said:
Hello, i am trying to check a checkbox with the click action of a command
button but i can seem to be able to do this.

i have entered

Me.[checkbox] = Yes

but this unchecks a checked box but does not check a unchecked box, i want
to achieve the opposite. i know i am missing something simple. can someone
help me.

thank you
 

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