Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
[Help] Select Query To Select All Records Where Any Field Is Null
Author Summary
freeheelsfreeminds is in help
Post Body

I have an Access Database for water quality monitoring that has fields including Water Temperature, Dissolved Oxygen, pH, etc. Each record (monitoring event) should have a value for each of these fields, and if they do not, I need to quickly identify which records are missing any of these data points.
All of the information I need for this query is in a single table, and I have set up a query that selects the Client, Date, and each water quality parameter, which I can scan through and manually check for data gaps, however, I would ideally like a query that selects all records that have a data gap in any of the water quality parameter fields.
Is it possible to have a query that essentially says:
"SELECT tblSamplingFormData.Date, tblSamplingFormData,......
FROM tblSamplingFormData
WHERE (((tblSamplingFormData.TurbidityValue) Is Null) OR (tblSamplingFormData.pHValue) Is Null) OR (tblSamplingFormData.TempValue) Is Null...."
and so on for all of the water quality parameters?
So far, I haven't been able to get anything to work. The working SQL code that selects everything but doesn't filter out "non-null" records is below:
SELECT tblSamplingFormData.SampleDate, tblSamplingFormData.Agency, tblSamplingFormData.ProductsApplied, tblSamplingFormData.SampleType, tblSamplingFormData.WaterLeavingTreatmentAreaConfirmation, tblSamplingFormData.TurbidityValue, tblSamplingFormData.pHValue, tblSamplingFormData.SCValue, tblSamplingFormData.TemperatureValue, tblSamplingFormData.DOValue FROM tblSamplingFormData WHERE (((tblSamplingFormData.SampleDate)>#1/1/2017#) AND ((tblSamplingFormData.WaterLeavingTreatmentAreaConfirmation)<>2) AND ((tblSamplingFormData.TurbidityValue) Is Null));
Thanks!
Steve

Author
Account Strength
90%
Account Age
11 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,059
Link Karma
249
Comment Karma
792
Profile updated: 2 days ago
Posts updated: 8 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago