Results 1 to 13 of 13
  1. #1
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179

    Update Form Fields


    Hello,

    I have 6 fields on my AFRs form that have Name? in them. I removed the fields from the AFRs table but I would like them to reference the ID fields and put the text on the form.

    Is there a way to do this without having to start over building the AFRs Form?

    Thank you very much

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    The data comes from 6 tables?

    Why aren't you using comboboxes to select values?


    Strongly advise not to use spaces nor punctuation/special characters in naming convention.
    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.

  3. #3
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    I started with combo boxes but after removing the fields like in one case:

    Clerk and just left the field ClerkID

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    And that is appropriate. Set comboboxes as multi-column. Display text description but save ID. Example for Customer:

    RowSource: SELECT ID, Customer FROM Customers;
    ColumnCount: 2
    ColumnWidths: 0";1"
    BoundColumn: 1
    ControlSource: CustomerID
    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.

  5. #5
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    I tried it with the Clerk field. I would like it to be filled from the AFRs table data please. It should reference the AFRs table for a previous record and put the Clerk name in the field.

    At least that is what I would like it to do please.

    Thank you

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I don't understand. Then why do you have these 6 lookup tables?

    Which previous record?

    Perhaps you just need to set ControlSource property of each combobox to respective ID field from AFR table.
    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.

  7. #7
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    Yes that sounds reasonable. Can you show me how to do one of them so I can do the others please?

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I already provided property settings in post 4 for Customer.
    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.

  9. #9
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    Sorry but it does not populate the customer name that is from the AFRs table for AFR Number 85634

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    That would be Richard Waters? Definitely shows for me. Review post 4 again. Are you sure you set all the properties as described?
    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.

  11. #11
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    I think so ?

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    You have not changed ControlSource property for either combobox nor any of the other properties for Customer combobox.
    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.

  13. #13
    billgyrotech1 is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    May 2019
    Posts
    179
    Okay I changed the control source for the Customer field. It shows 831 which is the Customer ID.

    Can it show the name?

    Sorry I made the edit from your earlier post.

    It works.

    I will get to the others in the morning.

    Thank you so much

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

Similar Threads

  1. Split form - Update lookup fields
    By Farida in forum Forms
    Replies: 1
    Last Post: 11-05-2015, 09:16 AM
  2. Replies: 14
    Last Post: 06-13-2014, 04:29 AM
  3. Form to update 4 fields
    By techflexus in forum Forms
    Replies: 1
    Last Post: 07-30-2012, 11:44 PM
  4. Update Two fields (text boxes) Form
    By j2curtis64 in forum Forms
    Replies: 11
    Last Post: 07-06-2011, 08:43 AM
  5. Help with auto update of fields in form
    By u0909098 in forum Forms
    Replies: 1
    Last Post: 05-12-2011, 07:16 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