K
KarenY
Hi,
I have to run a qry to get the different value of 2 fields from 2 tables.
Yet some rows come back with funny values for all those minus figures.
(e.g. -7.27595761418343E-12) when 2 tables have the same value.
I have 2 tables with all the invoices, both tables' data are downloaded from
our ODBC-tables from our server except the "SumNetTotal" which is the sum of
all the other fields in the table for all the invoices in tbl_NetTotals.
tbl_INVCtotals has a field "invcSum" for all the invoices.
Both tables have the same invoices.
My field : "diffValue" = (Nz([invcSum]))-(Nz([SumNetTotal]))
Those "funny minus values" are actually having the same amount in both
tables, should be zero.
I can understand that's probably the SumNetTotal is from the sum of all the
other fields which may probably have different decimals for each value.
Would anybody please help how do I round up the value (I did try to use
ROUND and RND but didn't work out).
I know I can run an update qry afterwards but I thought there may probably
be a function for me to input when I run the "diffValue" ?
I am using MS Access 2003.
Appreciate you help.
thanks
Karen
I have to run a qry to get the different value of 2 fields from 2 tables.
Yet some rows come back with funny values for all those minus figures.
(e.g. -7.27595761418343E-12) when 2 tables have the same value.
I have 2 tables with all the invoices, both tables' data are downloaded from
our ODBC-tables from our server except the "SumNetTotal" which is the sum of
all the other fields in the table for all the invoices in tbl_NetTotals.
tbl_INVCtotals has a field "invcSum" for all the invoices.
Both tables have the same invoices.
My field : "diffValue" = (Nz([invcSum]))-(Nz([SumNetTotal]))
Those "funny minus values" are actually having the same amount in both
tables, should be zero.
I can understand that's probably the SumNetTotal is from the sum of all the
other fields which may probably have different decimals for each value.
Would anybody please help how do I round up the value (I did try to use
ROUND and RND but didn't work out).
I know I can run an update qry afterwards but I thought there may probably
be a function for me to input when I run the "diffValue" ?
I am using MS Access 2003.
Appreciate you help.
thanks
Karen