D
Dave
I am trying to populate the fields in a form using a
For..Next loop to pull data from another table. The form
has six lines- for example, six lines with a date as the
first field, followed by other fields.
It seems like the easiest way (from my days of programming
in other languages) to fill in the form would be to use a
loop to select the records I need and then name each field
accordingly- such as Date(1), Date(2), Date(3).....
I tried doing it as (in simplified form here)
For I = 1 to 6
'code to select the appropriate record
Date(I)= selected record
Next I
Unfortunately, that does not produce the desired result
for naming the variable.
Any suggestions on how this can be done?
Thanks..>Dave
For..Next loop to pull data from another table. The form
has six lines- for example, six lines with a date as the
first field, followed by other fields.
It seems like the easiest way (from my days of programming
in other languages) to fill in the form would be to use a
loop to select the records I need and then name each field
accordingly- such as Date(1), Date(2), Date(3).....
I tried doing it as (in simplified form here)
For I = 1 to 6
'code to select the appropriate record
Date(I)= selected record
Next I
Unfortunately, that does not produce the desired result
for naming the variable.
Any suggestions on how this can be done?
Thanks..>Dave