I have a table that has fields called counter1, counter2, etc up to 6. I need to move the data in one of those fields, depending on some selection the user makes, to a new table. I use a string variable glbCounter to trap which selection the user made and am trying to concatinate the choice with rst!counter so that I will get the variable rst!counter6, for example. I want the value in rst!counter6 to be put in a new table in the field ExportAmount (which is a string). In the code below, tempFieldName = "rst!counter6" but I need it to be rst!counter6 (without quotes).
tempFieldName = "rst!counter" & modStartup.glbCounter
rstNew!ExportAmount = Lpad(tempFieldName, "0", 9)
Am I going about this all wrong?
Thanks.
tempFieldName = "rst!counter" & modStartup.glbCounter
rstNew!ExportAmount = Lpad(tempFieldName, "0", 9)
Am I going about this all wrong?
Thanks.