I have a form that displays record information in Continuous Record
display (scrollable list). One of the fields in the record is an
Integer value called "rcode" (reason code). But, I don't want to
display the reason code integer value. I want to display the reason
code descriptive text (string data). So I have a TEXT BOX object on the
form to display the text.
I have an public array defined(global variable defined in CommonProcs
module) that has the "rcode" values and the "rtext" values. It is
populated when the application first is launched and is available by the
time this form is opened.
The intent is that I should be able to use the "rcode" from the record
as an index into the array and find the "reason code text".
THE BACKGROUND:
When the form loads I do the following (in the Form_Open( ) routine):
Me!reasoncd = IIf(Me!rcode = 0, " ", aryReasonCodes(Me!rcode).strRText)
where me!reasoncd is the text box on the form.
THE PROBLEM:
EVERY record displays the SAME TEXT, regardless of the actual [rcode]
value in the record.
The array is definitely populated so that we should be able to get the
correct text provided we have the correct index value. The records have
the correct [rcode] values, as well.
Do you have a solution to my problem?
Thanks.
Regards,
SueB
*** Sent via Developersdex http://www.developersdex.com ***