R
Richnep
Hi all,
I am writing some VBA code in Access03 in a fields after update event.
The field types are decimal (18,1).
I am trying to write a SQL statement which looks like this:
Docmd.RUNSQL UPDATE tblStorageShip SET tblStorageShip.AmountLeftmg =
([tblStorageShip]![NumberLeftAliquotSize1]*[tblStorageShip]!
[SizeUGAliquotSize1])+([tblStorageShip]!
[NumberLeftAliquotSize2]*[tblStorageShip]![SizeUGAliquotSize2]);
And if one of the fields is a NULL i get a NULL return for that
record. Can I somehow set NULL to euqal 0 for this set of code
instruction so anytime it wencounters a null while executing the
calaculation stament it will see a null and assume it is a ZERO???
Thanks
I am writing some VBA code in Access03 in a fields after update event.
The field types are decimal (18,1).
I am trying to write a SQL statement which looks like this:
Docmd.RUNSQL UPDATE tblStorageShip SET tblStorageShip.AmountLeftmg =
([tblStorageShip]![NumberLeftAliquotSize1]*[tblStorageShip]!
[SizeUGAliquotSize1])+([tblStorageShip]!
[NumberLeftAliquotSize2]*[tblStorageShip]![SizeUGAliquotSize2]);
And if one of the fields is a NULL i get a NULL return for that
record. Can I somehow set NULL to euqal 0 for this set of code
instruction so anytime it wencounters a null while executing the
calaculation stament it will see a null and assume it is a ZERO???
Thanks