Code:
SELECT Rep_Project_NOItemsB.Expr1000, Rep_Project_NOItemsB.Drawings.Status, Rep_Project_NOItemsB.Project, Rep_Project_NOItemsB.Partition, Rep_Project_NOItemsB.Section, Rep_Project_NOItemsB.[Sub Section], Rep_Project_NOItemsB.[Drawing No], Rep_Project_NOItemsB.Revision, Rep_Project_NOItemsB.Type, Rep_Project_NOItemsB.Job, Rep_Project_NOItemsB.[Item No], Rep_Project_NOItemsB.[Item Name], Rep_Project_NOItemsB.[Job Items].Status, Rep_Project_NOItemsB.Quantity, Rep_Project_NOItemsB.[Due Date], Rep_Project_NOItemsB.Description, Rep_Project_NOItemsB.[Drawing Description], Rep_Project_NOItemsB.Category, Rep_Project_NOItemsB.Complete
FROM Rep_Project_NOItemsB
WHERE (((Rep_Project_NOItemsB.Category) In ([forms]![rep_project_noitems]![text7]) Or (Rep_Project_NOItemsB.Category) Is Null));
Ok so i have the above query. It should display a list of records where where the category field is not equal to the array of strings in [forms]![rep_project_noitems]![text7]. or the category field is empty.
the format of the string ([forms]![rep_project_noitems]![text7] is "'xxx', 'xxx', 'xxx'"
if i add a NOT (as below) i get every record in the table
Code:
WHERE (((Rep_Project_NOItemsB.Category) [b]NOT[/b] In ([forms]![rep_project_noitems]![text7]) Or (Rep_Project_NOItemsB.Category) Is Null));
if i remove the not I only get the empty records.
if i replace the field address with the string (as below) i get no records at all
Code:
WHERE (((Rep_Project_NOItemsB.Category) In ("'xxx', 'xxx', 'xxx'") Or (Rep_Project_NOItemsB.Category) Is Null));
please help i dont understand what is wrong