Dim STemp As String
Dim Rs As ADODB.Recordset
Set Rs = New ADODB.Recordset
a = "Select * From 清单申报表 where 计算机代码 ='" & Me.计算机代码 & "'"
b = "Select * From 清单申报表 where 申报单位 ='" & Me.申报单位 & "'"
STemp = a And b
Rs.Open STemp, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
上述代码中计算机代码和申报单位都是文本型,为啥系统总是提示“类型不匹配”啊?问题出在哪了,各位大侠帮忙啊,急啊!