C
CW
I want to set the value in a control on a form depending on the value in a
preceding control.
Specifically, if Text1 contains the word Insurance, then I want the value in
Text2 to be a particular numeric value (4005, which is an accounting analysis
code).
Text1 can be populated by users in various ways (it needs to be free text
and not a combo or a value list) so I cannot make Text2 react to the
selection of a certain value.
I was thinking of using the AfterUpdate or OnExit event on Text1, but there
comes my question - how do I code this: "If Text1 contains Insurance then
Text2 = 4005" ??
I have tried several variations along those lines without success - help,
please!
Many thanks
CW
preceding control.
Specifically, if Text1 contains the word Insurance, then I want the value in
Text2 to be a particular numeric value (4005, which is an accounting analysis
code).
Text1 can be populated by users in various ways (it needs to be free text
and not a combo or a value list) so I cannot make Text2 react to the
selection of a certain value.
I was thinking of using the AfterUpdate or OnExit event on Text1, but there
comes my question - how do I code this: "If Text1 contains Insurance then
Text2 = 4005" ??
I have tried several variations along those lines without success - help,
please!
Many thanks
CW