cuttysark55
New member
- Local time
- Today, 16:35
- Joined
- Aug 18, 2013
- Messages
- 4
I have an Access 2000 database of Color data containing over 3000 records.
One table is "ColorsByName" - Color names sorted alphabetically.
Some names contain spaces (ie, Antique White)
I read the table using the following code in part :
Dim Field As Integer ' Field counter
Dim strColors() As String ' Array of strings
Redim strColors(0 to RecordCount - 1, 0 to FieldCount - 1
' Load Array
For Row = 0 To RecordCount - 1
Field = 0
For Col = 0 To FieldCount - 1
strColors(Row, Col) = CStr(rsADO.Fields(Field).Value)
Field = Field + 1
Next
rsADO.MoveNext ' Step Next record
Next
Everything works fine until a block of names is skipped only to be inserted later down the list. It does this a couple more times before the read is complete.
In other words, the data is not read sequentially as it should be.
Does anyone know what the problem is?
More to the point, how do I fix it?
Thanks for your help,
cuttysark55
One table is "ColorsByName" - Color names sorted alphabetically.
Some names contain spaces (ie, Antique White)
I read the table using the following code in part :
Dim Field As Integer ' Field counter
Dim strColors() As String ' Array of strings
Redim strColors(0 to RecordCount - 1, 0 to FieldCount - 1
' Load Array
For Row = 0 To RecordCount - 1
Field = 0
For Col = 0 To FieldCount - 1
strColors(Row, Col) = CStr(rsADO.Fields(Field).Value)
Field = Field + 1
Next
rsADO.MoveNext ' Step Next record
Next
Everything works fine until a block of names is skipped only to be inserted later down the list. It does this a couple more times before the read is complete.
In other words, the data is not read sequentially as it should be.
Does anyone know what the problem is?
More to the point, how do I fix it?
Thanks for your help,
cuttysark55