I searched the forum but can't find an example of "insert into" where the values aren't taken from another table or query.
It's very simple:
I have a function that assigns some string variables, str1, str2 etc.
After that I want to insert them into a new post in my table, Table1.
This doesn't work, but how do I do???
It's very simple:
I have a function that assigns some string variables, str1, str2 etc.
After that I want to insert them into a new post in my table, Table1.
This doesn't work, but how do I do???
Code:
SQL="INSERT INTO Table1(name, time) str1, str2;"
DoCmd.RunSQL SQL