我的访问查询出现语法错误,但我看不出它是什么。
错误:SELECT语句包含保留字或参数 错误拼写或丢失的名称,或者说错误不正确。
查询:
SELECT W.[skid number] AS SkidNum,
W.job AS JobNum,
W.[job skid number] AS JobSkidNum,
W.form AS Form,
W.DATE AS DATE,
W.shift AS Shift,
W.[team member number] AS Operator,
W.[roll tender number] AS Helper,
W.weight AS Weight,
W. lbs AS Pounds,
( W.weight / W.lbs ) * 1000 AS Sheets,
W.press AS Press
FROM [press 1a skid entry] W
UNION ALL
SELECT SF.[skid number] AS SkidNum,
SF.job AS JobNum,
SF.[job skid number] AS JobSkidNum,
SF.form AS Form,
SF.DATE AS DATE,
SF.shift AS Shift,
SF.[team member number] AS Operator,
SF.[roll tender number] AS Helper,
"" AS Weight,
"" AS Pounds,
SF.[total sheets] AS Sheets,
SF.press AS Press
FROM [sheet fed 1a skid entry] SF;
答案 0 :(得分:4)
您有一个名为DATE
的列,这是一个reserved word in MS Access。
如果您想使用DATE
,请在其旁边放置括号[DATE]
答案 1 :(得分:3)
您使用了单词Date,这是一个保留字。
您可以查看保留字here
列表