J
JohnB
Is there a way to do this?
In the query below, the fields ProductImage1 through ProductImage9 should
contain the name of a photos. The query will display those records where
any of those 9 fields is blank. What I would like to do is have an
additional field that will show the number of those fields that are blank.
And that's the part that I've never done before: how do I tally those null
fields as the query reads through the file, and populate that new field with
the results?
SELECT Products.ProductName, Products.ProductMake, Products.ProductModel,
Products.ProductMake, Products.ProductStock
FROM Products
WHERE (((Products.ProductImage1) Is Null)) OR (((Products.ProductImage2) Is
Null)) OR (((Products.ProductImage3) Is Null)) OR (((Products.ProductImage4)
Is Null)) OR (((Products.ProductImage5) Is Null)) OR
(((Products.ProductImage6) Is Null)) OR (((Products.ProductImage7) Is Null))
OR (((Products.ProductImage8) Is Null)) OR (((Products.ProductImage9) Is
Null));
TIA
In the query below, the fields ProductImage1 through ProductImage9 should
contain the name of a photos. The query will display those records where
any of those 9 fields is blank. What I would like to do is have an
additional field that will show the number of those fields that are blank.
And that's the part that I've never done before: how do I tally those null
fields as the query reads through the file, and populate that new field with
the results?
SELECT Products.ProductName, Products.ProductMake, Products.ProductModel,
Products.ProductMake, Products.ProductStock
FROM Products
WHERE (((Products.ProductImage1) Is Null)) OR (((Products.ProductImage2) Is
Null)) OR (((Products.ProductImage3) Is Null)) OR (((Products.ProductImage4)
Is Null)) OR (((Products.ProductImage5) Is Null)) OR
(((Products.ProductImage6) Is Null)) OR (((Products.ProductImage7) Is Null))
OR (((Products.ProductImage8) Is Null)) OR (((Products.ProductImage9) Is
Null));
TIA