F
Fredrated
I am using access 2002.
I have created a class module which looks up information from tables for
other modules as needed. When told to look up information, it fetches the
data and stores it in variables until asked what the values are. The problem
is, if a field is null, access will not allow it to be stored in a variable.
If this was a form I would create a hidden text box and store it there, but a
class module has no controls.
Any suggestions on how to indicate that the field looked up is null?
One approach I often us is:
variable = IIF(IsNull(field),"",field)
The problem in this case is, the field I want to look up is a date, and
setting the date variable to "" results in a type mismatch error.
Any ideas? For instance, is there any such thing as a 'blank' or 'empty'
date value, like "" is an empty string value?
I have wanted to use a blank date at other times, but have not figured out
how.
(foxpro allows a programmer to set a date to " / / ")
Thanks in advance for any help.
Fred
I have created a class module which looks up information from tables for
other modules as needed. When told to look up information, it fetches the
data and stores it in variables until asked what the values are. The problem
is, if a field is null, access will not allow it to be stored in a variable.
If this was a form I would create a hidden text box and store it there, but a
class module has no controls.
Any suggestions on how to indicate that the field looked up is null?
One approach I often us is:
variable = IIF(IsNull(field),"",field)
The problem in this case is, the field I want to look up is a date, and
setting the date variable to "" results in a type mismatch error.
Any ideas? For instance, is there any such thing as a 'blank' or 'empty'
date value, like "" is an empty string value?
I have wanted to use a blank date at other times, but have not figured out
how.
(foxpro allows a programmer to set a date to " / / ")
Thanks in advance for any help.
Fred