Hi ,
I am trying to delete duplicate records considering that their date of question fields are not the same and I want to remain later date record
I never happened to submit delete query in access before.
When I try to run my query I got the following message:
Specify the table containing the records you want to delete
Does it mean that I can delete records just from table rather than from query? Actually part1 and part2 are select queries.
This is my query and I wonder what I did wrong as I think I specify part1 (name of the table or initial query)
DELETE part1.[MEMBER FIRST NAME], part1.[MEMBER LAST NAME], part1.[MEMBER ID], part1.SEX, part1.[DATE OF BIRTH], part1.PRODUCT, part1.[PROGRAM START DATE], part1.[PROGRAM END DATE], part1.[ASKED QUESTION], part1.[RESPONSE TO QUESTION], part1.[DATE OF SHOT IF KNOWN], part1.[DATE OF QUESTION], part1.[ACCEPTS CALLS], part1.[DATE ACCEPT CALLS SET], part1.[WRONG PHONE NUMBER], part1.[DATE OF WRONG PHONE NUMBER], part1.SOURCE, part1.ENROLLDT, part1.ENROLLDT2, part1.[PHONE NUMBER], part1.StartdtSept30
FROM part1 INNER JOIN part2 ON part1.[MEMBER ID] = part2.[MEMBER ID]
WHERE ((DateDiff("d",[part1].[date of question],[part2].[date of question])>"0"));
Thank you in advance
Estersita
I am trying to delete duplicate records considering that their date of question fields are not the same and I want to remain later date record
I never happened to submit delete query in access before.
When I try to run my query I got the following message:
Specify the table containing the records you want to delete
Does it mean that I can delete records just from table rather than from query? Actually part1 and part2 are select queries.
This is my query and I wonder what I did wrong as I think I specify part1 (name of the table or initial query)
DELETE part1.[MEMBER FIRST NAME], part1.[MEMBER LAST NAME], part1.[MEMBER ID], part1.SEX, part1.[DATE OF BIRTH], part1.PRODUCT, part1.[PROGRAM START DATE], part1.[PROGRAM END DATE], part1.[ASKED QUESTION], part1.[RESPONSE TO QUESTION], part1.[DATE OF SHOT IF KNOWN], part1.[DATE OF QUESTION], part1.[ACCEPTS CALLS], part1.[DATE ACCEPT CALLS SET], part1.[WRONG PHONE NUMBER], part1.[DATE OF WRONG PHONE NUMBER], part1.SOURCE, part1.ENROLLDT, part1.ENROLLDT2, part1.[PHONE NUMBER], part1.StartdtSept30
FROM part1 INNER JOIN part2 ON part1.[MEMBER ID] = part2.[MEMBER ID]
WHERE ((DateDiff("d",[part1].[date of question],[part2].[date of question])>"0"));
Thank you in advance
Estersita