G
Guest
I can't set the value of a checkbox to be true. I don't know if what I did
is the best or easiest way since I'm not a programmer. I'm trying to learn
so I save my macros as modules to see how it's written. If I did anything
incorrectly please tell me.
I created two macros then did a Save As, Module, and now I have two
functions. One is called CheckBoxCSA. It will set the value of
[ysnEmailedCSA] to true (the default value is set to False in the table).
The other is called EmailCSA. This opens an email form with the email
address in the To: field and the data from two fields on the form in the
message text. This also has the Edit Message property set to "Yes" so I can
add more information if needed.
I have a Command Button (cmdEmailCSA). This button, when clicked, runs the
macro mcrEmailCSA. The macro does RunCode so both functions (CheckBoxCSA and
EmailCSA) run. At least that's what I want it to do but it won't. I had it
do EmailCSA first then CheckBoxCSA. The mail part works. If I switch the
order the mail part still works. The checkbox is empty but something does
happen because if I click for a new record the checkbox has a check mark in
it so the default value was set to True...but that's not the one I want it
on. I want it on the record that was just created and the email sent.
Thanks for the help.~~ Ann
is the best or easiest way since I'm not a programmer. I'm trying to learn
so I save my macros as modules to see how it's written. If I did anything
incorrectly please tell me.
I created two macros then did a Save As, Module, and now I have two
functions. One is called CheckBoxCSA. It will set the value of
[ysnEmailedCSA] to true (the default value is set to False in the table).
The other is called EmailCSA. This opens an email form with the email
address in the To: field and the data from two fields on the form in the
message text. This also has the Edit Message property set to "Yes" so I can
add more information if needed.
I have a Command Button (cmdEmailCSA). This button, when clicked, runs the
macro mcrEmailCSA. The macro does RunCode so both functions (CheckBoxCSA and
EmailCSA) run. At least that's what I want it to do but it won't. I had it
do EmailCSA first then CheckBoxCSA. The mail part works. If I switch the
order the mail part still works. The checkbox is empty but something does
happen because if I click for a new record the checkbox has a check mark in
it so the default value was set to True...but that's not the one I want it
on. I want it on the record that was just created and the email sent.
Thanks for the help.~~ Ann