Stemdriller
Registered User.
- Local time
- Today, 10:28
- Joined
- May 29, 2008
- Messages
- 187
If a query comes back with a blank, can you use tell the query to display a Zero instead??
Thanks
Thanks
Me.RecordSet.RecordCount = 0
If you are using your query to populate a form you can test;
In the form's On Load event.Code:Me.RecordSet.RecordCount = 0
Jesse
Thanks for your input
I don't really understand what your saying. If the result of the query is an empty set or blank, just would like it to return a Zero so another MasterQuery can take the value and add it to it's final count that gets used for a Pie Chart.
It would appear that if one of the 4 sub queries returns an empty set then the MasterQuery will also return an empty set, even if the other sub queries are populated.
I am beginning to wonder now if i am barking up the wrong tree!
Gareth
The issue is, like jesse mentioned, if the table is empty it will return 0. However, if you apply a condition and there's no matching record, it will not return 0, it will come up as blank.
This was why DCrake mentioned using the DCount() function.
You DCount on the query.
DCount("*", "queryName")