markcrobinson
Programmer
What am I doing wrong?
Set rs1 = db.openrecordset("Select [Field 1], [Field 2], [Field 3] from data1;")
mcount=1
do while mcount < 4
mfield="[Field " & Ltrim(string(mcount))&"]"
? rs1.mfield
' I want the contents of mfield to be used so
' ? rs1.[Field 1] is output
mcount=mcount+1
loop
Set rs1 = db.openrecordset("Select [Field 1], [Field 2], [Field 3] from data1;")
mcount=1
do while mcount < 4
mfield="[Field " & Ltrim(string(mcount))&"]"
? rs1.mfield
' I want the contents of mfield to be used so
' ? rs1.[Field 1] is output
mcount=mcount+1
loop