K
Kamitsukenu
Hi there,
I'm a first time poster and I apologise now for any protocols I may have
accidently trampled over in posting here!
I'm trying to create an update query in MS Access where the query counts the
amount of addresses in a table that are the same, then if there are any
duplicate addresses in the table, it will mark a section field as "Bulk".
I've managed to do it as a select query, but I can't put this into an update
query. I've come up with this:
SELECT Count(tmpDefaultUnsortedTable![2] & tmpDefaultUnsortedTable![9]) AS
Copies
FROM tmpDefaultUnsortedTable
GROUP BY tmpDefaultUnsortedTable.[2], tmpDefaultUnsortedTable.[3],
tmpDefaultUnsortedTable.[4], tmpDefaultUnsortedTable.[5],
tmpDefaultUnsortedTable.[6], tmpDefaultUnsortedTable.[7],
tmpDefaultUnsortedTable.[8], tmpDefaultUnsortedTable.[9],
tmpDefaultUnsortedTable.[10]
HAVING (((Count([tmpDefaultUnsortedTable]![2] &
[tmpDefaultUnsortedTable]![9]))>1));
There is probably a really quick way of doing it, but I haven't a clue.
Please help!
I'm a first time poster and I apologise now for any protocols I may have
accidently trampled over in posting here!
I'm trying to create an update query in MS Access where the query counts the
amount of addresses in a table that are the same, then if there are any
duplicate addresses in the table, it will mark a section field as "Bulk".
I've managed to do it as a select query, but I can't put this into an update
query. I've come up with this:
SELECT Count(tmpDefaultUnsortedTable![2] & tmpDefaultUnsortedTable![9]) AS
Copies
FROM tmpDefaultUnsortedTable
GROUP BY tmpDefaultUnsortedTable.[2], tmpDefaultUnsortedTable.[3],
tmpDefaultUnsortedTable.[4], tmpDefaultUnsortedTable.[5],
tmpDefaultUnsortedTable.[6], tmpDefaultUnsortedTable.[7],
tmpDefaultUnsortedTable.[8], tmpDefaultUnsortedTable.[9],
tmpDefaultUnsortedTable.[10]
HAVING (((Count([tmpDefaultUnsortedTable]![2] &
[tmpDefaultUnsortedTable]![9]))>1));
There is probably a really quick way of doing it, but I haven't a clue.
Please help!