VB的SQL语句大家看看那儿错了? 5
DimProName,YesOrNoAsStringProName=Replace(产品名称.Text,"","")YesOrNo="True"Adodc1.Connec...
Dim ProName, YesOrNo As String
ProName = Replace(产品名称.Text, " ", "")
YesOrNo = "True"
Adodc1.ConnectionString = DataConnectString 'Adodc1连接
Adodc1.CommandType = adCmdText '设置记录源
Adodc1.RecordSource = "select * from 产品配件 where " + ProName + " = " + YesOrNo + " order by 编号" 展开
ProName = Replace(产品名称.Text, " ", "")
YesOrNo = "True"
Adodc1.ConnectionString = DataConnectString 'Adodc1连接
Adodc1.CommandType = adCmdText '设置记录源
Adodc1.RecordSource = "select * from 产品配件 where " + ProName + " = " + YesOrNo + " order by 编号" 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询