[英]MS Access 2013 syntax error in create table statement
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:删除
Number(15, 0)
段:
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)"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.