Results 1 to 3 of 3
  1. #1
    ddw23 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    3

    Access 03 Field Update


    Hello and Happy New Year to All!

    I have 2 tables:

    T1: Price File main fields (cate 1, cate 2, NIGP code) when received from vendor, NIGP codes are not entered and has many identical cate 1 and cate 2 fields because of the category of the items. Other fields distinguish the difference.

    T2: NIGP Codes main fields (cate 1, cate 2, NIGP code) used to update the T1's NIGP codes.

    Both tables have identical info in the cate 1 and cate 2 fields. Only T2 has NIGP codes.

    I need for T1 to search T2 where cate 1 and cate 2 equal and update T1 with the NIGP code in T2.
    I've tried an update query but it appears that my problem is the number of rows where cate 1 and cate 2 are identical. It should return 128 rows and it's returning 385 rows. I need it to find the first instance of cate 1 & cate 2 and update T1's NIGP field.

    Yes, we are still using Access 2003 . Our IT department won't let us upgrade and convert our databases for whatever reason(s).
    Thank you to all who can help me with this issue!

  2. #2
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    In the query you joined related fields and that's what you got? If so, more info is needed - like data samples from both tables. The joins (or lack of) could be the problem. Or not enough conditions like AND. I recommend using Excel to create sample data, complete with column headers. If sized properly, a copy & paste into your post makes a quick and well formatted table.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    1 you don't have to upgrade.
    2. The 'first instance' is relative. If you have a date field,or some other criteria to determine the first.
    make a query to pull the most recent record.
    then make an update query to fix the data from Q1.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-27-2016, 12:14 PM
  2. How Access update two table without field names?
    By llgtjb001 in forum Queries
    Replies: 16
    Last Post: 09-10-2015, 03:15 PM
  3. Replies: 5
    Last Post: 04-06-2015, 09:49 PM
  4. Replies: 2
    Last Post: 08-30-2012, 07:59 AM
  5. Update field in table after update on a subform
    By jpkeller55 in forum Queries
    Replies: 3
    Last Post: 09-30-2010, 08:02 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