T
tannagirl
Guest
I have an existing table that was initially populated using a make table query. Now that the data is there I want to insert new rows only if the primary key (matter_no) is not existing. I assumed that an append query would do this, but apparently an append table just adds the data again, so I have duplicate rows for each matter_no.
Our DBA sent me the following insert statement, but it does not seem to work in Access.
SELECT MM.MATTER_NO, MM.MATTER_NAME
FROM MM, MKP, CHECKLIST_MATTER_NO
WHERE ( MM.MATTER_STATUS="A" AND MKP.KP_ID="269629" )
AND NOT EXISTS (MM.MATTER_NO = CHECKLIST_MATTER_NO.MATTER_NO)

Our DBA sent me the following insert statement, but it does not seem to work in Access.
SELECT MM.MATTER_NO, MM.MATTER_NAME
FROM MM, MKP, CHECKLIST_MATTER_NO
WHERE ( MM.MATTER_STATUS="A" AND MKP.KP_ID="269629" )
AND NOT EXISTS (MM.MATTER_NO = CHECKLIST_MATTER_NO.MATTER_NO)
