|
Prev: access date query
Next: split address field
From: FJquestioner on 6 Aug 2006 16:42 I have a query to find duplicate invoice numbers. I use the access find duplicate wizard query as follows: SELECT Invoices.AssignorInvoiceNumber FROM Invoices WHERE (((Invoices.AssignorInvoiceNumber) In (SELECT [AssignorInvoiceNumber] FROM [Invoices] As Tmp GROUP BY [AssignorInvoiceNumber] HAVING Count(*)>1))) ORDER BY Invoices.AssignorInvoiceNumber; It works fine however I have a related macro wherein a form is closed only if there are no duplicates found in the above query. I set the form to close if the AssignorInvoiceNumber in the query is Null. However, when there are no duplicates the query returns blank cells that seem to be neither Null nor blank fields like " " so the condition in my macro won't work. In essence, what condition do I write in a macro such that the macro action occurs when the query above reveals no duplicates? I'm stumped. Thanks very much in advance.
|
Pages: 1 Prev: access date query Next: split address field |