Hi guys, just had a really quick question.. I've made the following query that takes readings from stages of a Lauter Tun (industrial beer brewing vessel).. I keep getting "Data type mismatch in criteria expression" and after some tweaking i can get the error "Invalid use of null". I swear I've tried everything and most internet assistance on the matter deals with date formatting etc - really shouldn't be so hard!
Here's the query I'm trying to write
Code:
SELECT [qBH 011 - BH_PROCESS].[Start Date/Time], [qBH 011 - BH_PROCESS].[End Date/Time], [qBH 011 - BH_PROCESS].[Recipe Type], [qBH 011 - BH_PROCESS].Recipe, [qBH 011 - BH_PROCESS].[Week #], [qBH 011 - BH_PROCESS].[Brew #], [qBH 011 - BH_PROCESS].[D09 Name], [qBH 011 - BH_PROCESS].[D04 Actual], [qBH 011 - BH_PROCESS].[Step Name], Val([D09 Actual]) AS Expr1
FROM [qBH 011 - BH_PROCESS]
WHERE ((([qBH 011 - BH_PROCESS].[D09 Name])="LT1_DENSITY") AND ((Val([D09 Actual]))>0));
When it's like this (missing essential criteria expression) it works:
Code:
SELECT [qBH 011 - BH_PROCESS].[Start Date/Time], [qBH 011 - BH_PROCESS].[End Date/Time], [qBH 011 - BH_PROCESS].[Recipe Type], [qBH 011 - BH_PROCESS].Recipe, [qBH 011 - BH_PROCESS].[Week #], [qBH 011 - BH_PROCESS].[Brew #], [qBH 011 - BH_PROCESS].[D09 Name], [qBH 011 - BH_PROCESS].[D04 Actual], [qBH 011 - BH_PROCESS].[Step Name], Val([D09 Actual]) AS Expr1
FROM [qBH 011 - BH_PROCESS]
WHERE ((([qBH 011 - BH_PROCESS].[D09 Name])="LT1_DENSITY"));
but doesn't filter out the =0 values.