wrightyrx7
Registered User.
- Local time
- Yesterday, 23:24
- Joined
- Sep 4, 2014
- Messages
- 104
Hi all,
I have the below in a query to select my required data.
When i check the data in Datasheet View it looks fine, there is NO blanks in the Location field. But if i export to excel the NZ values are gone..
The important part though is if i create another query from the above query with GROUP BY
It treats it as though its not running the NZ in the 1st query. So if Structure lvl5 was blank in table_MainData it is blank in the results of the second query.
Its like i cannot group by on the NZ value.
Please help. I cannot move forward with my work until i figure this out.
Thanks
Chris
I have the below in a query to select my required data.
Code:
SELECT
table_MainData.*,
Nz([Structure lvl5],[Structure lvl4])) AS Location
FROM table_MainData;
When i check the data in Datasheet View it looks fine, there is NO blanks in the Location field. But if i export to excel the NZ values are gone..
The important part though is if i create another query from the above query with GROUP BY
Code:
SELECT
MI_REPORTS.Location,
Count(MI_REPORTS.ID) AS CountOfID
FROM MI_REPORTS
GROUP BY MI_REPORTS.Location;
It treats it as though its not running the NZ in the 1st query. So if Structure lvl5 was blank in table_MainData it is blank in the results of the second query.
Its like i cannot group by on the NZ value.
Please help. I cannot move forward with my work until i figure this out.
Thanks
Chris
Last edited: