悬赏!!!VB运行时,提示"出现From子句语法错误",怎么解决?
来源:百度知道 编辑:UC知道 时间:2024/06/08 04:51:54
代码如下
Private Sub Form_Load()
rtn = SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3) '运用API函数SetWindowPos,来实现使窗体置前的功能
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\制造企业库存管理系统的研究与开发.mdb;Persist Security Info=False"
Adodc1.RecordSource = "select * from StoreRoom"
Adodc1.Refresh
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub
"Adodc1.Refresh"这一行老是提示"FROM子句语法错误",其中我已经在ACCESS数据库中建立了一个有关"StoreRoom"的表,它存在的,但是还是运行不成功,出现上面的问题```
Private Sub Form_Load()
rtn = SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3) '运用API函数SetWindowPos,来实现使窗体置前的功能
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\制造企业库存管理系统的研究与开发.mdb;Persist Security Info=False"
Adodc1.RecordSource = "select * from StoreRoom"
Adodc1.Refresh
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub
"Adodc1.Refresh"这一行老是提示"FROM子句语法错误",其中我已经在ACCESS数据库中建立了一个有关"StoreRoom"的表,它存在的,但是还是运行不成功,出现上面的问题```
Private Sub Form_Load()
rtn = SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3) '运用API函数SetWindowPos,来实现使窗体置前的功能
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=制造企业库存管理系统的研究与开发.mdb;Persist Security Info=False"
Adodc1.RecordSource = "select * from StoreRoom"
set datasource=adodc1
Adodc1.Refresh
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub
你先把select * from StoreRoom这句话单独复制出来,放到access里运行一下看看,是否提示出错,出现这个一般是你sql语句写的不正确,仔细检查一下
vb 运行时提示类型不匹配?
运行vb程序时总提示加载错误????怎么办?
VB程序运行时提示:Run-time error"9"
求VB代码,可运行追加50悬赏!
电子表格运行时提示:the program is too big to fit in memory(400悬赏)
安装vb时已运行了vb安装向导,但仍出现提示“请首先运行安装向导”,安装不成功,这是怎么回事?
vb运行时错误70
请问vb程序在其它机器上运行时为什么会提示crviewer9.dll不能加载,谢谢!
运行VB时为什么会提示“找不到文件DA0350。DLL”?怎么处理这个问题啊?相当棘手啊!!!
我写了一段VB代码,运行时总提示下表越界,请高手们给指导一下