Results 1 to 2 of 2
  1. #1
    DonL is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    5

    Auto populate a field (without a form)


    Hi all

    Stuck on something that I hope you can help me with.

    I have 3 tables -
    Jobs
    Assets
    Matrix (static table)

    One job can have many assets, with Job ID primary in Jobs and foreign in assets. I have created a form that includes Jobs and assets, with the assets info displayed in its table format under the Job data (the typical 1 to many access form).

    When the user enters a new job using this form, and then enters the assets associated with this form (with the user entering numeric values in some fields), I want a field in the assets table to automatically update by taking values from the matrix table and completing a calculation with values entered by the user in the assets table.

    The questions I have are:
    • Can this be done directly with the assets table without using afterupdate event?
    • Since i'm using the type of form described above, is afterupdate event available to me?
    • If not available to me how would you advice I go ahead and successfully complete this?


    Please ask all the questions you want to clarify further what I'm trying to complete.

    Thank you all

    DonL

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,892
    If Matrix is not part of the RecordSource for the form or subform, then will need code to get the values from table. The trick is determining which event should have the code. AfterUpdate is available. Which control do you want to use?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 16
    Last Post: 11-18-2010, 11:08 AM
  2. Split Form - Auto Populate
    By CCAccess2010 in forum Forms
    Replies: 2
    Last Post: 10-04-2010, 06:33 AM
  3. auto populate combo field?
    By myboii in forum Access
    Replies: 8
    Last Post: 07-09-2010, 05:46 AM
  4. Replies: 3
    Last Post: 10-05-2009, 07:22 AM
  5. Auto populate fields on a form
    By ldarley in forum Forms
    Replies: 0
    Last Post: 08-14-2008, 09:39 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