mustangirl
Programmer
Here is a portion of code I have written. I have order count for example = 4. I want it to loop through textboxes (mainstring(I) 1- 12) on my report which are set up as an array. And change the font color until order count = 0.
If i declare Mainstring as a String it will read the value of Mainstring, but it gives me an error message, Invalid Qualifier, I tried Variant, it also reads the data, it does not give me an error message but the text color remains black. If I declare it as a control, it won't even read the value it says Empty when it actually contains data.
Any Suggestions?
Do While INTordercount > 0
If I > INTmainroutetrailercount Then
I = 1
Else
If Mainstring(I) = " " Then
I = I + 1
Else
Mainstring(I).ForeColor = vbRed
INTordercount = INTordercount - 1
I = I + 1
End If
End If
Loop SHAWNDRA CREE JONES,
DATABASE DEVELOPER
TOYOTA MOTOR MANUFACTURING NORTH AMERICA
ERLANGER, KY
If i declare Mainstring as a String it will read the value of Mainstring, but it gives me an error message, Invalid Qualifier, I tried Variant, it also reads the data, it does not give me an error message but the text color remains black. If I declare it as a control, it won't even read the value it says Empty when it actually contains data.
Any Suggestions?
Do While INTordercount > 0
If I > INTmainroutetrailercount Then
I = 1
Else
If Mainstring(I) = " " Then
I = I + 1
Else
Mainstring(I).ForeColor = vbRed
INTordercount = INTordercount - 1
I = I + 1
End If
End If
Loop SHAWNDRA CREE JONES,
DATABASE DEVELOPER
TOYOTA MOTOR MANUFACTURING NORTH AMERICA
ERLANGER, KY