C
Chris
Hi Group,
I am using Northwind to test 17 fields for occurances of
nulls.
I have designed a query (SQL provided below) that returns
538 nulls from the Orders Table, but for the purposes of
the report I don't require all the record information,
instead can Access return just the field(s) that contains
the null(s) only but in a 'list-style format', like so...
EmployeeID FieldContainingNull
1 RequiredDate
1 OrderDate
8 RequiredDate
9 RequiredDate
9 OrderDate
9 ShipName
The output is required for further production of a pivot
report to identify nulls by employee only.
Very grateful for any help or suggestions.
Chris
SELECT Employees.EmployeeID, Orders.RequiredDate,
Orders.ShipVia, Employees.FirstName, Employees.LastName,
Orders.OrderDate, Orders.ShippedDate, Orders.Freight,
Orders.ShipName, Orders.ShipAddress, Orders.ShipCity,
Orders.ShipRegion, Orders.ShipPostalCode,
Orders.ShipCountry, Employees.Title, Employees.BirthDate,
Employees.HireDate
FROM Employees INNER JOIN Orders ON Employees.EmployeeID =
Orders.EmployeeID
WHERE (((Orders.RequiredDate) Is Null)) OR
(((Orders.ShipVia) Is Null)) OR (((Orders.OrderDate) Is
Null)) OR (((Orders.ShippedDate) Is Null)) OR
(((Orders.Freight) Is Null)) OR (((Orders.ShipName) Is
Null)) OR (((Orders.ShipAddress) Is Null)) OR
(((Orders.ShipCity) Is Null)) OR (((Orders.ShipRegion) Is
Null)) OR (((Orders.ShipPostalCode) Is Null)) OR
(((Orders.ShipCountry) Is Null)) OR
(((Employees.FirstName) Is Null)) OR
(((Employees.LastName) Is Null)) OR (((Employees.Title) Is
Null)) OR (((Employees.BirthDate) Is Null)) OR
(((Employees.HireDate) Is Null))
ORDER BY Employees.EmployeeID;
I am using Northwind to test 17 fields for occurances of
nulls.
I have designed a query (SQL provided below) that returns
538 nulls from the Orders Table, but for the purposes of
the report I don't require all the record information,
instead can Access return just the field(s) that contains
the null(s) only but in a 'list-style format', like so...
EmployeeID FieldContainingNull
1 RequiredDate
1 OrderDate
8 RequiredDate
9 RequiredDate
9 OrderDate
9 ShipName
The output is required for further production of a pivot
report to identify nulls by employee only.
Very grateful for any help or suggestions.
Chris
SELECT Employees.EmployeeID, Orders.RequiredDate,
Orders.ShipVia, Employees.FirstName, Employees.LastName,
Orders.OrderDate, Orders.ShippedDate, Orders.Freight,
Orders.ShipName, Orders.ShipAddress, Orders.ShipCity,
Orders.ShipRegion, Orders.ShipPostalCode,
Orders.ShipCountry, Employees.Title, Employees.BirthDate,
Employees.HireDate
FROM Employees INNER JOIN Orders ON Employees.EmployeeID =
Orders.EmployeeID
WHERE (((Orders.RequiredDate) Is Null)) OR
(((Orders.ShipVia) Is Null)) OR (((Orders.OrderDate) Is
Null)) OR (((Orders.ShippedDate) Is Null)) OR
(((Orders.Freight) Is Null)) OR (((Orders.ShipName) Is
Null)) OR (((Orders.ShipAddress) Is Null)) OR
(((Orders.ShipCity) Is Null)) OR (((Orders.ShipRegion) Is
Null)) OR (((Orders.ShipPostalCode) Is Null)) OR
(((Orders.ShipCountry) Is Null)) OR
(((Employees.FirstName) Is Null)) OR
(((Employees.LastName) Is Null)) OR (((Employees.Title) Is
Null)) OR (((Employees.BirthDate) Is Null)) OR
(((Employees.HireDate) Is Null))
ORDER BY Employees.EmployeeID;