Results 1 to 2 of 2

Thread: append table problems

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Location
    England
    Posts
    135

    append table problems

    hi,

    i tried doing a delete query earlier on and it still doesnt work, so this is the latest idea.

    I have two tables of data, both of which have a unique number, which may be on both tables.

    I want to run an append query which will take all of the records on one table, EXCEPT those which are on the second table. Please help me with this one as i am getting really frustrated as the NOT expression seems not to work.

    I have tried = NOT [ value on second table ] in the criteria, but it doesnt work?? why?

    thanks a lot.
    Sparky

  2. #2
    Frenzied Member PilgrimPete's Avatar
    Join Date
    Feb 2002
    Posts
    1,313
    First off, did you try the UNION query?

    Second, try this:
    Code:
    SELECT Fields
    FROM Table1
    LEFT JOIN Table2
    ON Table1.UniqueID = Table2.UniqueID
    WHERE Table2.UniqueID IS NULL
    (You might need a RIGHT join, I can never visualise the way they work and invariably get them back to front!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width