Hi all,
I'm trying to run the following sql statement in a vb.net 1.1 windows app and I'm not getting the correct results:
select Nz(sum(Amount)) from tblFeesandPayments where tblFeesandPayments.subID = 21657
What should come back is 0 (zero) but it's returning -1.4210.....
The field "Amount" is a data type Number and the format is set to currency in the Access 97 database. Not sure if that matters.
When I run the same query directly in Access, I get the same results.
Is this something I need to convert or cast in order to get my desired result? If so, how do O accomplish that?
Thanks.
I'm trying to run the following sql statement in a vb.net 1.1 windows app and I'm not getting the correct results:
select Nz(sum(Amount)) from tblFeesandPayments where tblFeesandPayments.subID = 21657
What should come back is 0 (zero) but it's returning -1.4210.....
The field "Amount" is a data type Number and the format is set to currency in the Access 97 database. Not sure if that matters.
When I run the same query directly in Access, I get the same results.
Is this something I need to convert or cast in order to get my desired result? If so, how do O accomplish that?
Thanks.