设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 1751|回复: 5
打印 上一主题 下一主题

[帮助] Access运行报错,找不到原因,求支持

[复制链接]

点击这里给我发消息

1#
发表于 2015-1-15 23:23:41 | 显示全部楼层
可能是有关键字 保留字
以下来自MSDN,看来您的表名用了关键词,可以用[]包含起来来解决
SYMPTOMS
When opening a Microsoft Jet table using ActiveX Data Objects (ADO), the program displays the following error:
   Run-time error '-2147217900 (80040e14)':
   [Microsoft][ODBC Microsoft Access 97 Driver] Syntax error in FROM
   clause.

CAUSE
The table name is a SQL reserved word, such as "Order".

RESOLUTION
Change the table name to a non-reserved word, such as "Orders" or place square brackets around the name: "[Order]"

点击这里给我发消息

2#
发表于 2015-1-15 23:24:57 | 显示全部楼层
另查询中 如果是字符型 的条件 ,前后要加 ‘ 不加 单引号 有时也会提示这个错误
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-5-21 07:08 , Processed in 0.101004 second(s), 24 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表