Jon von der Heyden
MrExcel MVP, Moderator
- Joined
- Apr 6, 2004
- Messages
- 10,912
- Office Version
- 365
- Platform
- Windows
Hi
Another quirk I can't see reference to.
I am pulling a small recordset out of an Access database. It is a single field recordset. Some records are null. If I try and load the recordset into an array I get a mismatch error. The field is set as a text fields. On closer inspection I notice that the null value is converted into the number 1 (hence the mismatch).
I found out using:
(The RunScript function returns a recordset using the recordset open method.)
Which returned:
The #1 above is actually a null value in the recordset. Why is it being converted to #1?
Another quirk I can't see reference to.
I am pulling a small recordset out of an Access database. It is a single field recordset. Some records are null. If I try and load the recordset into an array I get a mismatch error. The field is set as a text fields. On closer inspection I notice that the null value is converted into the number 1 (hence the mismatch).
I found out using:
Code:
?m_clsDB.RunScript(strSQL).GetString(adClipString,-1,"|",vbcrlf,vbnull)
(The RunScript function returns a recordset using the recordset open method.)
Which returned:
Code:
[B][COLOR="Red"]1[/COLOR][/B]
Development & Projects
IT
Local Buying
Logistics
Mobility
Professional Services
The #1 above is actually a null value in the recordset. Why is it being converted to #1?