求助~,运行结果为无效使用null怎么办?
Dim sr As New ADODB.RecordsetDim j As Integer
If connstr() Then
Set sr = selectSql(st)
With msglists
.Rows = 1
Do While Not sr.EOF
Rows = Rows + 1
For j = 0 To sr.Fields.Count - 1
If Not isnull(Trim(sr.Fields(j).Value)) Then
.TextMatrix(Rows - 1, j) = sr.Fields(j)
Else
.TextMatrix(Rows - 1, j) = ""
End If
Next j
Loop
End With
End If