K
keith
Hello,
I am using an example from the Access help system to create and write
records to a DAO database. Below is a piece of the code from the example.
This example writes two variables that have been defined in the table:
“firstname†and “lastnameâ€.
With tdf
.AddNew
!firstname = Str(count)
!lastname = "abc"
.Update
End With
In my table, however, the program creates the table, and then adds
variables. One time, the variables might be “firstname†and “lastnameâ€, and
another time they might be “Var1†and “Var2â€
I can store the variables as strings. For example, String1 might be
“firstname†one time, and “Var1†another time, but what syntax would be used
in the above code to identify the variable name? Using a statement like…
!String1 = MyData
Doesn’t work.
Any suggestions?
Thank you,
Keith
I am using an example from the Access help system to create and write
records to a DAO database. Below is a piece of the code from the example.
This example writes two variables that have been defined in the table:
“firstname†and “lastnameâ€.
With tdf
.AddNew
!firstname = Str(count)
!lastname = "abc"
.Update
End With
In my table, however, the program creates the table, and then adds
variables. One time, the variables might be “firstname†and “lastnameâ€, and
another time they might be “Var1†and “Var2â€
I can store the variables as strings. For example, String1 might be
“firstname†one time, and “Var1†another time, but what syntax would be used
in the above code to identify the variable name? Using a statement like…
!String1 = MyData
Doesn’t work.
Any suggestions?
Thank you,
Keith