From time to time I get dirty records added to my databse by certain users and even though the data entry form does have code to keep a user from making dirty records, somehow I am still getting dirty records...
I have put together a query/report which will hunt these down and display a report for these dirty records in my ain table. The query looks for blank fields and I am also trying to get it to match up a part number with an operation.
I secify a criteria in the query to only display records where the partnum (which is matched with the correct operation from a table) to the assembly number within the main table record, but I am getting all records displayed.
I am probably doing something wrong that is too simple for me to figure out and perhaps with the join properties.
Here is what my query looks like:
SELECT [FPY Table].Date, [FPY Table].ID, [FPY Table].Operation, [FPY Table].[Assembly Number], allowable.partnum, [FPY Table].DTS, operator.Name, [FPY Table].TermID
FROM ([FPY Table] INNER JOIN operator ON [FPY Table].Operator = operator.Operator) INNER JOIN allowable ON [FPY Table].Operation = allowable.Operation
WHERE ((([FPY Table].ID) Is Null)) OR ((([FPY Table].Operation) Is Null)) OR ((([FPY Table].[Assembly Number]) Is Null)) OR ((([FPY Table].DTS) Is Null)) OR (((allowable.partnum)<>[Assembly Number]));
Any ideas?
Thanks in advance!
I have put together a query/report which will hunt these down and display a report for these dirty records in my ain table. The query looks for blank fields and I am also trying to get it to match up a part number with an operation.
I secify a criteria in the query to only display records where the partnum (which is matched with the correct operation from a table) to the assembly number within the main table record, but I am getting all records displayed.
I am probably doing something wrong that is too simple for me to figure out and perhaps with the join properties.
Here is what my query looks like:
SELECT [FPY Table].Date, [FPY Table].ID, [FPY Table].Operation, [FPY Table].[Assembly Number], allowable.partnum, [FPY Table].DTS, operator.Name, [FPY Table].TermID
FROM ([FPY Table] INNER JOIN operator ON [FPY Table].Operator = operator.Operator) INNER JOIN allowable ON [FPY Table].Operation = allowable.Operation
WHERE ((([FPY Table].ID) Is Null)) OR ((([FPY Table].Operation) Is Null)) OR ((([FPY Table].[Assembly Number]) Is Null)) OR ((([FPY Table].DTS) Is Null)) OR (((allowable.partnum)<>[Assembly Number]));
Any ideas?
Thanks in advance!