D
David Newmarch
In a report I want the value of a textbox to appear within parentheses when a
Yes/No field in the underlying query is positive and without parentheses if
the Yes/No field negative. For example, if the value of checkbox chkActive is
True, and the value of textbox txtOrderID is, say, CW259, then I want that
value to appear in the textbox without any punctuation as "CW259". If
chkActive is False then I want the value to appear in parenthesies as
"(CW259)".
I assume that it might be done with some sort of "On Load" code, but I have
no idea how to code the presence or absence of the desired punctuation. Can
anyone suggest a way to do this? Very grateful for any light you can shed.
Yes/No field in the underlying query is positive and without parentheses if
the Yes/No field negative. For example, if the value of checkbox chkActive is
True, and the value of textbox txtOrderID is, say, CW259, then I want that
value to appear in the textbox without any punctuation as "CW259". If
chkActive is False then I want the value to appear in parenthesies as
"(CW259)".
I assume that it might be done with some sort of "On Load" code, but I have
no idea how to code the presence or absence of the desired punctuation. Can
anyone suggest a way to do this? Very grateful for any light you can shed.