vb 改变 Access数据,急,急!急!
高手们帮忙改一下面代码呀。PrivateSubCommand1_Click()Adodc1.ConnectionString="Provider=Microsoft.Je...
高手们帮忙改一下面代码呀。
Private Sub Command1_Click() Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\luyun.mdb;Persist Security Info=False" Adodc1.RecordSource = "select * from 报表 where 当前状态='" & "未付" & "' and 桌号='" & "201" & "'" Adodc1.Refresh
update 餐厅 set 当前状态="已付" where 当前状态="未付" Adodc1.Recordset.UpdateEnd Sub 展开
Private Sub Command1_Click() Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\luyun.mdb;Persist Security Info=False" Adodc1.RecordSource = "select * from 报表 where 当前状态='" & "未付" & "' and 桌号='" & "201" & "'" Adodc1.Refresh
update 餐厅 set 当前状态="已付" where 当前状态="未付" Adodc1.Recordset.UpdateEnd Sub 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询