Code:
Dim mydb As Database
Set mydb = CurrentDb
mydb.Execute "CREATE TEMPORARY TABLE Students(StudentName text)"
What is wrong with the above code?
I get this error
Syntax error in CREATE TABLE statement.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim mydb As Database
Set mydb = CurrentDb
mydb.Execute "CREATE TEMPORARY TABLE Students(StudentName text)"
Syntax error in CREATE TABLE statement.
msaccess help said:CREATE TABLE Statement
...
CREATE [TEMPORARY] TABLE table (field1 type [(size)] [NOT NULL] [WITH COMPRESSION | WITH COMP] [index1] [, field2 type [(size)] [NOT NULL] [index2] [, ...]] [, CONSTRAINT multifieldindex [, ...]])
....
Remarks
....
When a TEMPORARY table is created it is visible only within the session in which it was created. It is automatically deleted when the session is terminated. Temporary tables can be accessed by more than one user.
...