Results 1 to 3 of 3
  1. #1
    sbaptista is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    10

    Bind text boxes to data in different records on one form

    What is the most efficient way to bind text fields on a form to data from different records and then be able to update all records with one button? For example, I have a form whose Record Source is a query that returns the following records:


    ID Param ParamVal
    1 DropFolder c:\drops
    2 LogFolder c:\logs

    I would like to do the following:


    1. Create text field-1 that binds to record #1 ParamVal ("c:\drops")
    2. Create text field-2 that binds to record #2 ParamVal ("C:\logs")
    3. Allow the user to modify the contents of the text fields
    4. Update all with a button


    Thanks


    -Stan

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Maybe possible with side-by-side subforms, each filtered to the desired record.

    Entry/edit of data is committed to table when: 1. form closes, 2. form loses focus by clicking elsewhere, 3. move to another record, 4. run save code
    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
    sbaptista is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Posts
    10
    Thanks a lot. I decided to handle the database updates in VBA. I'm using one form that updates multiple records based on which control is modified by the user.

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

Similar Threads

  1. Replies: 9
    Last Post: 06-04-2014, 10:45 AM
  2. Bind item() to button text at random
    By timosilver in forum Access
    Replies: 0
    Last Post: 02-26-2012, 12:08 PM
  3. Text Box Won't Bind
    By HowardOfOcal in forum Forms
    Replies: 10
    Last Post: 01-30-2012, 02:57 PM
  4. Replies: 3
    Last Post: 01-17-2012, 01:04 PM
  5. Replies: 15
    Last Post: 09-18-2010, 01:19 PM

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