Results 1 to 3 of 3
  1. #1
    gemadan96 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    110

    Updating table with changes in form

    I have started with the Desktop Contacts database template for Access 2010.



    In the Members table I've added a lookup field for Rank which gets its values from the Rank table. This field has been added to the Member Details form. I've added a control with a DLookup function that looks up the selected Rank and returns the correct Title for the member. When I save the form I want it to update the Title field in the Members table. At the moment it is not doing that. The control in the Member Detail form is named Title and the field in the Members table is also named Title.

    The Title does need to be stored in the Members table for other features and it will change as the member's rank changes.

    How do I get my table to update as data in the form changes?

  2. #2
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Here's an explanation of why Lookup Fields at the Table level are a bad idea:

    http://www.mvps.org/access/lookupfields.htm

    Instead, create a Combobox in your Form based on the Table holding the data you want to retrieve.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  3. #3
    gemadan96 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    110
    Let me correct what I have. Rank is not a lookup field in the Members table. Rank is a combobox on the Member Details form. When the Rank is selected on the Member Details form the Title control uses a DLookup to fill in the correct title from the Rank table. When the form data is saved the correct Rank is entered in the Rank field of the Members table, however the Title is not being updated. I want the Title to be updated.

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

Similar Threads

  1. Updating main table from temp table AND form value
    By shabbaranks in forum Programming
    Replies: 8
    Last Post: 05-01-2013, 07:18 AM
  2. Replies: 1
    Last Post: 03-27-2012, 05:25 PM
  3. Form not Updating Table
    By j2curtis64 in forum Forms
    Replies: 1
    Last Post: 05-11-2011, 05:17 PM
  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