Results 1 to 5 of 5
  1. #1
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138

    more info on query

    I have this code, it is working, but I need more info to be giving back to user

    I am updating table TAPES from an import table RECIEVED every day.

    Code:
    UPDATE Recieved INNER JOIN Tapes ON Recieved.StickerNumber = Tapes.StickerNumber SET Tapes.DateReturn = [Recieved].[DateReturn], Tapes.RecievedBack = [Recieved].[RecievedBack];
    When I rub this I need it to show all of the StickerNumber that have been done and that have not be done.

    Now when I run this qury and the usewr did not put in the stckenumber in the databse I cannot see if it is then updated as it is not here.

    eg.

    PTAV00071761 was done as it is in the database table
    PTAV00072174 was not done, it was not in the database table.
    PTAV00072178 was done as it is in the database table
    PTAV00072181 was done as it is in the database table

    si if I can get it so how each one with how many in that pta number (can be 1 - 4) and if it was done or not done

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    you can run this query before you run your update query to find out what will or won't get updated based on the stickernumber existing in the tapes table

    Code:
    SELECT Received.StickerNumber, "Will " & iif(Tapes.StickerNumber is null, "not ","") & "be done" as success
    FROM Recieved LEFT JOIN Tapes ON Recieved.StickerNumber = Tapes.StickerNumber

  3. #3
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138
    Hi Ajax, Thank you

    Did run it, bit get a box with "enter parameter value' on
    Received.StickerNumber

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    check the spelling of Received - I spelt it correctly

  5. #5
    hendrikbez is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    138
    Ajax
    Thank you, I should have see that I spelled the word wrong, it is working now

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

Similar Threads

  1. Query not pulling all of the info.
    By Snickren in forum Queries
    Replies: 2
    Last Post: 01-29-2016, 03:45 PM
  2. Replies: 3
    Last Post: 09-16-2014, 01:45 PM
  3. Replies: 3
    Last Post: 10-24-2012, 05:41 PM
  4. Replies: 1
    Last Post: 09-17-2012, 01:59 PM
  5. Stumped: Query asking for info twice?
    By Heatshiver in forum Programming
    Replies: 2
    Last Post: 01-09-2012, 10:14 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