i have textboxes on my form named:
txtDetailName1, txtDetailData 1
Here is an example of WRONG code that won't work, but better explains what i am trying to do:
Expand|Select|Wrap|Line Numbers
- varIndex = 1
- Do while varIndex < 9
- If [Service(varIndex)-Name] IsNot Null Then
- txtDetailName(varIndex) = [Service(varIndex)-Name]
- txtDetailData(varIndex) = [Service(varIndex)-Total]
- End If
- varIndex = varIndex + 1
- Loop
The end result is some records don't have a Service1, but have a servic3, and just putting them all on the form would leave blank boxes everywhere, where this cleans it up.
Thanks in advance, i am struggling here!!