This will not run. Does anyone know why?
Create Table Customer
(CustomerID Number(15,0) AutoIncrement Not Null,
Name Varchar(40) Not Null,
Phone Varchar(20),
Email Varchar(40) Not Null,
Primary Key(CustomerID)
)
Remove the Number(15, 0)
segment:
Create Table Customer
(
CustomerID AutoIncrement Not Null,
Name Varchar(40) Not Null,
Phone Varchar(20),
Email Varchar(40) Not Null,
Primary Key(CustomerID)
)
Maybe Like this?
CurrentDb.Execute "Create Table Customer" & _
"(CustomerID AUTOINCREMENT PRIMARY KEY NOT NULL ," & _
"Name Varchar(40) Not Null," & _
"Phone Varchar(20)," & _
"Email Varchar(40) Not Null)"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.