RAYLWARD102
Well-known Member
- Joined
- May 27, 2010
- Messages
- 529
I have a query that's been working great, until we challenged it, by providing different value types in one column.
lets say I have 5 rows of data in column A (each cell value contains: 22005) that I want to capture to recordset.
Query: SELECT F1 AS [instructions] FROM [Worksheet$]
The above query works returning 5 rows of 22005.
Now, if I have 5 rows of data, and the first row is equal to 22005 and the second row equal to apple and the rows afterwards, are 22005, the recordset will return all values except for the apple; apple will come back NULL.
If I put apple in the first row, same thing; will happen; Null is returned, but the other rows with 22005 are returned.
I'm not sure what the problem is, since I have other columns with apple, that all come back apple.
Any idea's why I'm getting some data back as NULL?
lets say I have 5 rows of data in column A (each cell value contains: 22005) that I want to capture to recordset.
Query: SELECT F1 AS [instructions] FROM [Worksheet$]
The above query works returning 5 rows of 22005.
Now, if I have 5 rows of data, and the first row is equal to 22005 and the second row equal to apple and the rows afterwards, are 22005, the recordset will return all values except for the apple; apple will come back NULL.
If I put apple in the first row, same thing; will happen; Null is returned, but the other rows with 22005 are returned.
I'm not sure what the problem is, since I have other columns with apple, that all come back apple.
Any idea's why I'm getting some data back as NULL?