G
Guest
Hi,
I have a table with a text field which allows zero-length strings. For
my Access 97 task at hand I need to compare that value with a similar field
in another table. If they are different, I copy both values to a third table.
This is part of a VBA module.
My questions is: if a field's value can be null, is that a value that
can be represented by a string variable in VBA?
From my reading/experimentation, simply assigning a field with a value
of null to a string variable causes an error (#94). Is it therefore the case
that I have to test the field's value first with IsNull() and if true,
'copying' its value to my third table means doing nothing (as new records
there will contain null fields by default)?
Thanks,
Dave.
I have a table with a text field which allows zero-length strings. For
my Access 97 task at hand I need to compare that value with a similar field
in another table. If they are different, I copy both values to a third table.
This is part of a VBA module.
My questions is: if a field's value can be null, is that a value that
can be represented by a string variable in VBA?
From my reading/experimentation, simply assigning a field with a value
of null to a string variable causes an error (#94). Is it therefore the case
that I have to test the field's value first with IsNull() and if true,
'copying' its value to my third table means doing nothing (as new records
there will contain null fields by default)?
Thanks,
Dave.