I have a value held within a VBA variable which i which to later using the docmd.RunSql statement insert into a table, what is the correct syntax for this
DoCmd.RunSQL "INSERT INTO tblTest2 (f1) VALUES (myVar)"
This is what i have just now which doesnt work.
The variable myVar is the vba variable i wish to insert into the table tblTest2
DoCmd.RunSQL "INSERT INTO tblTest2 (f1) VALUES (myVar)"
This is what i have just now which doesnt work.
The variable myVar is the vba variable i wish to insert into the table tblTest2