Adodc1.Refresh 上边这么多行的select * from ... where ...是干什么用的?首先,文本字段的字符串要加双引号,比如: Adodc1.RecordSource = select * from 客户信息 where 客户姓名=""" & Text1(1).Text & """"其次,没有必要加这么多的Select,只保留编号哪一行就可以了: Adodc1.RecordSource = "select * from 客户信息 where 编号=" & Text1(0).Text最后,你来回倒数据是想干什么?
不好意思,我没注意你全都是文本类型的,如果编号是文本类型的,肯定要加双引号的: Adodc1.RecordSource = select * from 客户信息 where 编号=""" & Text1(0).Text & """"你的Command2_Click是用来增加还是删除?
Adodc1.RecordSource = select * from 客户信息 where 客户姓名=""" & Text1(1).Text & """"其次,没有必要加这么多的Select,只保留编号哪一行就可以了:
Adodc1.RecordSource = "select * from 客户信息 where 编号=" & Text1(0).Text最后,你来回倒数据是想干什么?
Adodc1.RecordSource = select * from 客户信息 where 编号=""" & Text1(0).Text & """"你的Command2_Click是用来增加还是删除?