not sure what to call this so sorry for the title

ok say i have 10 variables
var1
var2
var3
var4
var5
var6
var7
var8
var9
var10

ok each of them needs to be processed into sql

so
VB Code:
  1. 'im just gonna write sql statement to much to write connection and everything
  2.  
  3.  
  4. sql = "insert into table (jason) values (" & var1 & ")"
  5. sql.execute
  6.  
  7. sql = "insert into table (jason) values (" & var2 & ")"
  8. sql.execute
  9.  
  10. sql = "insert into table (jason) values (" & var3 & ")"
  11. sql.execute
  12.  
  13. sql = "insert into table (jason) values (" & var4 & ")"
  14. sql.execute
  15.  
  16. sql = "insert into table (jason) values (" & var5 & ")"
  17. sql.execute
  18.  
  19. .......
  20. .........
  21. ..........so on and so on


in my actual project it is much more complicated but thats the jist of it

now is there an easier way of doing this?
like doing a for loop 10 times or something. if i did a loop i dont know how to change the var name to be based off the loop tho.

anyways thanks for your help in advance.

-JLR