照猫画虎把问题解决了.......简单记录下给以后的自己一个交代
Set rsttemp = New ADODB.Recordset
RaiseEvent eOutimport(strFileName, VoucherMain.bodyText(VoucherMain.Row, "cinvcode"), VoucherMain.bodyText(VoucherMain.Row, "iquantity"), rsttemp)
If rsttemp.State = 1 Then
......
oEle.setAttribute "cinvsn", rsttemp.fields(1)
......
end if
Private Sub ctrUS1_eOutimport(strScanName As String, ecinvcode As String, eiSNCount As Integer, rsttemp As ADODB.Recordset)
......
rsttemp.Open "select cInvCode,cInvSN,cInvBoxSN from ST_SNTOutIn", CN, adOpenStatic, adLockReadOnly
......
End Sub