Results 1 to 3 of 3
  1. #1
    probablyjoel is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Posts
    6

    Updating one table through another table

    I'm having an issue updating data in my database I'm creating.

    Basically, we are using a linked table [txlsPayforceUpload] from our HRIS as the primary information. Since I cannot create a primary key on this linked table, I have an append query which moves the data to a table where I can identify [EmplID] as the Primary Key. I need this to have referrential integrity with the other data driven off this table.



    My issue is that the feed which comes from our HRIS changes weekly, and the table to which I'm appending data [tblPayforceUpload], a) will not allow me to append the data, as the [EmplID]'s cannot duplicate, and b) I can't run a delete query and THEN append the data, as the other tables are linked to the [EmplID] with referrential integrity. I can't have it cascade delete, as it would delete everything.

    Ideally, I would like to run an Update Query to simply update all fields in [tblPayforceUpload] based on what is in the linked table [txlsPayforceUpload]. I tried to run an expression through the update query for one table field to another, but it didn't work. P.S... I'm a n00b, so I'm totally stumped.

    Any ideas?

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    See if the information on this page helps:
    http://www.techonthenet.com/access/queries/update2.php

  3. #3
    probablyjoel is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Posts
    6
    Thank you for your post. It works now!

    I actually did try that exact method before posting and was getting errors. Apparently, my issue was that I was trying to update through a linked table. Once I created one extra step to take that data, append it to a new table, then run the update off that table, it worked perfectly.

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

Similar Threads

  1. Replies: 0
    Last Post: 03-27-2011, 02:05 PM
  2. Updating value in another table
    By nostr4d4m in forum Queries
    Replies: 2
    Last Post: 03-23-2011, 08:05 AM
  3. Replies: 3
    Last Post: 01-31-2011, 11:47 AM
  4. Updating my table through VBA.
    By pedie in forum Access
    Replies: 1
    Last Post: 01-26-2011, 08:40 PM
  5. Table not updating (Anyone Please Help)
    By goyal_cyber in forum Queries
    Replies: 7
    Last Post: 05-28-2010, 09:42 AM

Tags for this Thread

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