I am trying to fill a table with VBA/DAO and have many field names. I can enter each field using the following, as examples...
However, I would like to put "ItemNo" and "ItemAge" and all the others into an array, like
Then I'd be able to use a loop to fill the data, rather then many individually written lines.
I believe this is possible, but don't recall how.
Thanks!
Code:
rs![ItemNo] = 1
rs![ItemAge] = 1
However, I would like to put "ItemNo" and "ItemAge" and all the others into an array, like
Code:
strTemp = Array("ItemNo", "ItemAge"....)
Then I'd be able to use a loop to fill the data, rather then many individually written lines.
I believe this is possible, but don't recall how.
Thanks!