Results 1 to 3 of 3
  1. #1
    nostr4d4m is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    11

    Updating value in another table

    Hej,

    I am trying to create a way to filter my Companies by LastContacted which is date and before was entered manualy.



    I want it to be set automaticaly each time new entry in T_ActivitiyNotes is created.


    P.S. One Company has many activities. Each activity has many Notes.

    I need to update variable LastContacted in table Companies. Value for LastContacted should come from table T_ActivityNote field DateCreated (it has standartvalue =now() ). Each time new note is created companies LastContacted field should be updated too.

    How can i do that? I cant find the way to transfer data.

  2. #2
    Join Date
    Mar 2011
    Posts
    15
    If you were using a better SQL server you'd use triggers, as far as I know access doesn't have that functionality.

    If you're taking the data from a form, then you need to add an UPDATE query that updates the companies table when you insert a new note into T_ActivityNotes. Is there any reason why this wouldn't work?

  3. #3
    nostr4d4m is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2011
    Posts
    11
    It actualy worked. Done it in SQL. Thanks!

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

Similar Threads

  1. Updating my table through VBA.
    By pedie in forum Access
    Replies: 1
    Last Post: 01-26-2011, 08:40 PM
  2. updating an imported table
    By cmul in forum Access
    Replies: 3
    Last Post: 08-20-2010, 03:24 AM
  3. Table not updating (Anyone Please Help)
    By goyal_cyber in forum Queries
    Replies: 7
    Last Post: 05-28-2010, 09:42 AM
  4. updating a table from a form.....
    By softspoken in forum Access
    Replies: 7
    Last Post: 04-21-2010, 09:04 AM
  5. Updating a table from a form
    By Lynn in forum Forms
    Replies: 3
    Last Post: 03-18-2010, 10:51 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