In excel VBA, I have declared a variable:
Later, I try to assign this variable a NULL value which is the result of a SQL query of a table:
The SQL is executed, and I have several dozen variables that are successfully being assigned a value just like the example above, however this variable and about 6 others all fail because the retrieved value from the SQL table is null. I am getting "Error 94 - Invalid Use of Null" errors.
Why is this and what can I do to avoid this?
Software Training, Implementation, Programming and Support for Macola Progression, Macola ES, Synergy, and Crystal Reports. Check out our Macola tools:
Code:
Dim stAstDesc2 as String
Later, I try to assign this variable a NULL value which is the result of a SQL query of a table:
Code:
Select ast_desc_2 from fxastfil_sql..
stAstDesc2 = !ast_desc_2
The SQL is executed, and I have several dozen variables that are successfully being assigned a value just like the example above, however this variable and about 6 others all fail because the retrieved value from the SQL table is null. I am getting "Error 94 - Invalid Use of Null" errors.
Why is this and what can I do to avoid this?
Software Training, Implementation, Programming and Support for Macola Progression, Macola ES, Synergy, and Crystal Reports. Check out our Macola tools: