Hello,
I'm preparing a simple invoice solution for a friend who owns a small business.
Let me explain briefly what I have done:
An invoice form is based on a query which links clients and invoices tables.
A sub form within invoice is based on a query which links invoice table with sub invoice table and products table. The sub form enables user to enter goods or services.
Now, since this business uses only 2 different VAT rates, queries calculate those rates and later to be called by invoice sub form via Dlookup function.
So far so good.
However, whenever a query returns Null, the relevant field (VAT subtotal) displays #ERROR and therefore, grand total displays #TYPE.
I have tried Nz function with no avail. There must be a way for a query to display 0 when no records are found instead of Null.
I do appreciate any help and Thank you in advance for your attention.
I'm preparing a simple invoice solution for a friend who owns a small business.
Let me explain briefly what I have done:
An invoice form is based on a query which links clients and invoices tables.
A sub form within invoice is based on a query which links invoice table with sub invoice table and products table. The sub form enables user to enter goods or services.
Now, since this business uses only 2 different VAT rates, queries calculate those rates and later to be called by invoice sub form via Dlookup function.
So far so good.
However, whenever a query returns Null, the relevant field (VAT subtotal) displays #ERROR and therefore, grand total displays #TYPE.
I have tried Nz function with no avail. There must be a way for a query to display 0 when no records are found instead of Null.
I do appreciate any help and Thank you in advance for your attention.