I'm trying to run a sql statement where the field names of the table are supplied by the user in a form. When I run the statement below, I get the value of [forms]![form1]![q1] in q1 and what I want are the values of the field that is named in [forms]![form1]![q1].
INSERT INTO t ( q1 ) SELECT [forms]![form1]![q1] FROM [1st table];
EXAMPLE: [forms]![form1]![q1] = Field 133
Right now, field "q1" has the value "Field 133". "q1" should look just like field "Field 133".
I hope this makes sense.
Thanks!
lakefun
INSERT INTO t ( q1 ) SELECT [forms]![form1]![q1] FROM [1st table];
EXAMPLE: [forms]![form1]![q1] = Field 133
Right now, field "q1" has the value "Field 133". "q1" should look just like field "Field 133".
I hope this makes sense.
Thanks!
lakefun