Results 1 to 2 of 2
  1. #1
    Access_Novice is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Sep 2013
    Posts
    265

    Automatically populating a table field based on a LOOKUP value?

    I have two tables, "Membership" and "Class." The Class table has a class ID, class name, and cost of the class.



    In the Membership table, I have a field to accept a class ID that is entered by a user. I also have a column called Tuition. When the user enters a classID in the Membership table, I would like the dollar amount associated with that classID to automatically appear in the field called Tuition in the Membership table.

    I tried the LOOKUP data type and calculated fields, but no luck. I know that DLOOKUP can be used on forms, but I don't see how it can be used directly with tables.

    Is this even possible?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Code is required to save calculated value to table. Cannot be done in table, except maybe with Data Macro. I don't know much about Data Macros. I use only VBA and don't do data entry directly with tables.

    Are you saving tuition in Membership because of possibility tuition for the class could change in the future?
    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: 5
    Last Post: 06-14-2012, 08:30 AM
  2. Replies: 97
    Last Post: 05-24-2012, 02:10 AM
  3. Replies: 3
    Last Post: 07-12-2011, 02:02 PM
  4. Replies: 4
    Last Post: 04-18-2011, 07:18 AM
  5. Replies: 5
    Last Post: 08-20-2010, 06:40 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