建立一条查询,在ACCESS上运行没有问题,语句如下:
select customer, nz(sum(amount),0) as paid from tblcustomers
能够实现如果amount合计为空时,显示为0,
但在vb.net中,nz()函数没有定义,用isnull()也不行,求指教。
------解决方案--------------------
SELECT customer, COALESCE(SUM(amount),0) as paid from tblcustomers
select customer, nz(sum(amount),0) as paid from tblcustomers