I've written a VBA process that already passes 12 parameters to a Sub. In re-writing my code I find I want to pass another 12. There are four permutations of three variables. Since they are similar I thought there must be an easier way to pass these values. I looked at passing a two-dimensional array (variable name, variable value) but haven't worked with arrays that much and couldn't easily find a code example on the Web that would appear to solve my problem. Then I thought I could just write the values to a table in my database, since all my procedure is doing is updating some or all of the variables at each iteration of a loop.
Then I began to wonder if I shouldn't just type in the 12 parameters and be done with it.
Does anyone have any thoughts as to the efficiency and effectiveness of one solution over the other?
TIA,
Nolan
Then I began to wonder if I shouldn't just type in the 12 parameters and be done with it.
Does anyone have any thoughts as to the efficiency and effectiveness of one solution over the other?
TIA,
Nolan