C
Chris
I have to make a delete query with multiple criteria (3). Somethhing like
this:
DELETE table.*, table.Data, Sum([dim1])-Sum([dim2]) AS Dif1,
Sum([quantity])-Sum([quantity]-[quantity2]) AS Dif2
FROM table
WHERE (((table.Data)<=[FORMS]![Archiving]![DataArh]) AND
((Sum([dim1])-Sum([dim2]))=0)) OR
(((Sum([quantity])-Sum([quantity-quantity2]))=0));
but access does not accept agregate funtions in a delete query
Can you please HELP me?
this:
DELETE table.*, table.Data, Sum([dim1])-Sum([dim2]) AS Dif1,
Sum([quantity])-Sum([quantity]-[quantity2]) AS Dif2
FROM table
WHERE (((table.Data)<=[FORMS]![Archiving]![DataArh]) AND
((Sum([dim1])-Sum([dim2]))=0)) OR
(((Sum([quantity])-Sum([quantity-quantity2]))=0));
but access does not accept agregate funtions in a delete query
Can you please HELP me?