B
BlueWolverine
Hello,
MS ACCESS 2003 on XP PRO.
I asked earlier about how to loop through all the controls on a form.
I now have a slightly different question.
I have an array with values loaded into it. Col1 is full of fieldNames, and
Col2 is full of fieldValues. call the array a_Fields(1 to x,1 to 2) as
string
I want my loop to fill these fields to look something like this
lcv=1
while lcv<=RECORDCOUNT
Forms!MyForm!a_Fields(lcv,1).value =a_Fields(lcv,2)
lcv=lcv+1
wend
This doesn't work, but I think you see what I'm trying to do.
I want to avoid looping within loop, and I'd rather not write queries every
time to limit my selection to 1 record within a loop.
Is there anyway to do what I'm looking for?
Thanks
MS ACCESS 2003 on XP PRO.
I asked earlier about how to loop through all the controls on a form.
I now have a slightly different question.
I have an array with values loaded into it. Col1 is full of fieldNames, and
Col2 is full of fieldValues. call the array a_Fields(1 to x,1 to 2) as
string
I want my loop to fill these fields to look something like this
lcv=1
while lcv<=RECORDCOUNT
Forms!MyForm!a_Fields(lcv,1).value =a_Fields(lcv,2)
lcv=lcv+1
wend
This doesn't work, but I think you see what I'm trying to do.
I want to avoid looping within loop, and I'd rather not write queries every
time to limit my selection to 1 record within a loop.
Is there anyway to do what I'm looking for?
Thanks