elquixiote
Technical User
Does anybody know why the actualsize property returns
the double of the real size of the field in the record ?
Dim i As Integer
Dim adoConn As ADODB.Connection
Dim userRSet As ADODB.Recordset
Set adoConn = New ADODB.Connection
adoConn.Open "dsn=db_criser", "admin", "criser"
Set userRSet = adoConn.Execute("Select * from users order by logonid")
userRSet.MoveNext
MSFlexGrid3.AddItem "Name" & vbTab & "definedSize" & vbTab & "actualSize" & vbTab & "Value" & vbTab & "type"
For i = 0 To userRSet.Fields.Count - 1
With userRSet.Fields(i)
MSFlexGrid3.AddItem .Name & vbTab & _
.DefinedSize & vbTab & _
.ActualSize & vbTab & _
.Value & vbTab & _
.Type
End With
Next i
the double of the real size of the field in the record ?
Dim i As Integer
Dim adoConn As ADODB.Connection
Dim userRSet As ADODB.Recordset
Set adoConn = New ADODB.Connection
adoConn.Open "dsn=db_criser", "admin", "criser"
Set userRSet = adoConn.Execute("Select * from users order by logonid")
userRSet.MoveNext
MSFlexGrid3.AddItem "Name" & vbTab & "definedSize" & vbTab & "actualSize" & vbTab & "Value" & vbTab & "type"
For i = 0 To userRSet.Fields.Count - 1
With userRSet.Fields(i)
MSFlexGrid3.AddItem .Name & vbTab & _
.DefinedSize & vbTab & _
.ActualSize & vbTab & _
.Value & vbTab & _
.Type
End With
Next i