Re: Recordset Data Type
- From: "bz" <nospam@xxxxxxxxx>
- Date: Tue, 5 Dec 2006 11:38:27 -0800
Thanks for the input.
If I want to have a function to check for a database null from the
recordset, how do I pass the recordset value to the function?
I want to replace this code with a function:
If Not Isnull(My_Recordset("interest_rate")) Then
Interest_Rate = My_Recordset("interest_rate")
End If
To:
Interest_Rate = Get_Value(My_Recordset("interest_rate"))
There is no overload in VB6.
So, Get_Value must take and return a variant.
And, the code above will not work if the function return a string.
I need to change it to:
Interest_Rate = Cdbl(Get_Value(My_Recordset("interest_rate")))
Am I Correct? or it is not how it is done.
.
- Follow-Ups:
- Re: Recordset Data Type
- From: Bob Butler
- Re: Recordset Data Type
- From: Ralph
- Re: Recordset Data Type
- References:
- Recordset Data Type
- From: bz
- Re: Recordset Data Type
- From: Ralph
- Recordset Data Type
- Prev by Date: Re: Recordset Data Type
- Next by Date: Re: Recordset Data Type
- Previous by thread: Re: Recordset Data Type
- Next by thread: Re: Recordset Data Type
- Index(es):
Relevant Pages
|
Loading