D
Dirk Goldgar
Bill Stanton said:Dirk wrote:
"I'd certainly expect to be able to change the value of a field by
assigning to the control bound to it, so long as the recordset and
field are updatable and the control is enabled."
So would I, and that's exactly what is making this caper so
mysterious! Other than my having erroneously inserted the assignment
statements
in the OnOpen code rather than in the OnLoad section, this should be
about as "vanilla as it comes". Having said that, I don't understand
what PC Datasheet is saying about one not being able to assign values
to bound controls from code. To me, that's the same thing as saying
that code
can't act as proxy for the user in assigning values to a field.
However, I'm new enough at all of this to not challenge the experts,
so I remain clueless.
So, to clarify, I open a form in "acFormAdd" mode and attempt to
toggle
two of the check-box controls from the OnLoad section of the form's
code-sheet. With the repeated failures there, I modified the code to
attempt to assign text to one of the many text-boxes and encountered
the same error. With that, I've concluded the problem has nothing to
do with the check-boxes themselves, rather there is a problem in
general while trying to perform assignments to controls from code.
Be back in a few hours. (10:48AM PST)
Bill
Just out of curiosity, what happens if you put the code in the Current
event?