当前位置:编程学习 > VB >>

奇怪的from子句语法错误

Dim path As String 
path = App.path 
str = path 
If Right(str, 1) <> "\" Then 
str = str + "\" 
Else 
str = str 
End If 
str = "Provider=Microsoft.Jet.OLEDB.4.0;Persist Security Info=False;Data Source=" & str & "studentsinfo.mdb" 
Adodc1.ConnectionString = str 
Adodc1.CommandType = adCmdTable 
Adodc1.RecordSource = "select * from information" 
Adodc1.Refresh 
运行后提示我 from子句语法错误,郁闷阿。请大虾们指点指点把。
--------------------编程问答-------------------- Adodc1.CommandType = adCmdText
  
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) 

最新版本:20070130

http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html --------------------编程问答-------------------- 表名不要起为information,information是Jet4.0的保留字 --------------------编程问答-------------------- 同意楼上
实在要用就试试:
select * from [information] --------------------编程问答-------------------- 哈哈,2楼的,的确是应该改为Adodc1.CommandType = adCmdText。
3、4楼的也要感谢,不过我继续使用还是没问题。
补充:VB ,  数据库(包含打印,安装,报表)
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,