I'm developing with VB 6 & Sql Server 2k. I have a
SELECT * from...
statement which returns values of various datatypes, as well as some <NULL> values. When populating text fields from the recordset object, I get "Invalid Use of Null" errors when such is the case.
To correct this, I thought I'd use an "isnull(,) function, but don't no how to deal with the second parameter in this function, when I don't know what column or data type is currently being evaluated...
eg:
select isnull(*,some value) from table
Is there either a typeof() or some similar function which can be included in a case statement to process based on the type returned? How would that be done?
If that can't be done, or if there is a better way to deal with this, please share any ideas.
Thank you for any and all replys!
K3V
SELECT * from...
statement which returns values of various datatypes, as well as some <NULL> values. When populating text fields from the recordset object, I get "Invalid Use of Null" errors when such is the case.
To correct this, I thought I'd use an "isnull(,) function, but don't no how to deal with the second parameter in this function, when I don't know what column or data type is currently being evaluated...
eg:
select isnull(*,some value) from table
Is there either a typeof() or some similar function which can be included in a case statement to process based on the type returned? How would that be done?
If that can't be done, or if there is a better way to deal with this, please share any ideas.
Thank you for any and all replys!
K3V