我想做这样的事情:
strCurrentName = rstAux.Fields("Name")
strCurrentMat = rstAux.Fields("ID")
Dim rstAux As Recordset
Dim rstReal As Recordset
Dim strCurrentName As String
Dim strCurrentMat As String
Set rstAux = New ADODB.Recordset
Set rstReal = New ADODB.Recordset
If( (strCurrentName = rstReal.Fields("Name")) OR (strCurrentMat = rstReal.Fields("ID")) Then
'codeee
End If
VB6可以吗?
我尝试了不同的方法来做到这一点,但我总是得到如下错误:
Variables uses an Automation type not supported in Visual Basic
好的,我明白消息的含义,但我想知道是否有办法这样做。