求助!!,我搞了一个晚上都搞不懂!,
Private Sub Command1_Click()
With Adodc1
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\Adm.mdb;Mode=ReadWrite;Persist Security Info=False"
.CommandType = adCmdTable
.RecordSource = "User"
.Refresh '出错!!!! "from子语句语法错误"
End With
End Sub
Private Sub Command2_Click()
With Adodc2
.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\server.mdb;Mode=ReadWrite;Persist Security Info=False"
.CommandType = adCmdTable
.RecordSource = "Adm"
.Refresh
End With
End Sub
为什么Command1_Click()的 .Refresh会错误,
而Command2_Click() .Refresh没有出错.
是不是数据库有问题?但是我的数据库和表都没有问题呀!
谢谢!!
[此贴子已经被作者于2005-11-10 13:04:39编辑过]