Results 1 to 2 of 2
  1. #1
    togo is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    83

    Query to update table based on missing entries

    Hi, I have a database where we have people doing reports online and offline. When they return from offline status they have been working on a copy of the back end and their report has gone there into three different tables. When they reconnect to the network drive, I was hoping to run a query to append this new information to the back end and then use SyncToy through a hyperlink to replace their local fake back end with the one on the network drive as an update function for next time they go offline.



    It looks like a union query could do the trick. Anyone have a basic example?

    Essentially a client file table contains the job number, address, client name, contact and job description
    A report subtable contains report specific information, controlled by job number and report number
    An items subtable controlled by job number, report number and item number.

    Thanks for any help.

  2. #2
    togo is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2012
    Posts
    83
    i was thinking of something like this:

    INSERT INTO table2
    (jobnumber, reportnumber)
    SELECT table1.jobnumber, table1.reportnumber
    FROM table1
    WHERE table1.jobnumber <> table2.jobnumber AND table1.reportnumber <> table2.reportnumber;

    you think this code wil work the way I want it

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Missing entries
    By Baldeagle in forum Queries
    Replies: 3
    Last Post: 11-07-2012, 10:47 AM
  2. Replies: 1
    Last Post: 10-29-2012, 08:15 AM
  3. Replies: 6
    Last Post: 05-10-2012, 08:20 PM
  4. Replies: 1
    Last Post: 08-31-2011, 04:03 PM
  5. Replies: 1
    Last Post: 06-28-2011, 05:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums