Results 1 to 2 of 2
  1. #1
    mashtha9 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2014
    Posts
    2

    Query issue

    Hi all,



    I have two tables:
    Table A, fields a1 (text), a2 (date)
    Table B, fields b1 (text), b2 (date)

    a1 and b1 are linked as 1-n
    a1 is PK of A

    I am using the following query:
    UPDATE A
    SET A.[a2] = B.[b2]
    WHERE (A.[a1] = B.[b1]) AND (B.[b2] > A.[a2]);

    When i run the query, i get the pop up where I am asked to enter a2 and b2 instead of automatic updating. Why is my query not working? Any help would be really appreciated.

  2. #2
    mashtha9 is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2014
    Posts
    2
    never mind. found the solution myself. using inner join and set solves the problem

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

Similar Threads

  1. Query issue
    By BRZ-Ryan in forum Queries
    Replies: 12
    Last Post: 01-14-2014, 03:23 PM
  2. Aggregate query issue
    By TheShabz in forum Queries
    Replies: 8
    Last Post: 09-06-2011, 05:09 PM
  3. Query Issue
    By mtnairco in forum Access
    Replies: 4
    Last Post: 07-22-2011, 10:46 AM
  4. Form / Query issue
    By asmith in forum Forms
    Replies: 4
    Last Post: 09-24-2010, 10:47 AM
  5. Query Issue
    By access in forum Queries
    Replies: 1
    Last Post: 01-14-2010, 03:28 PM

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