Results 1 to 4 of 4
  1. #1
    lccrews is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Location
    Los Angeles
    Posts
    194

    How to fill down a series with a value from a textbox


    I have a form with a subform linked to a query. It displays all records related to parameters: Item #, Bill Type, and Revision. I'd like to know if there is a way to type in a value for 'batch size' and, using a button, fill down the series of records with that value. Please see my picture for better clarity.
    Attached Thumbnails Attached Thumbnails Untitled.png  

  2. #2
    lccrews is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Aug 2017
    Location
    Los Angeles
    Posts
    194
    A simple update query with batch size being updated to what's in the text box.

  3. #3
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    How about an update query using the criteria you have developed for the sub-form.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,899
    Yes, there are ways. The simplest might be to manually execute an Access dynamic parameterized UPDATE query object. That query object could be called by code (macro or VBA). Or could even build the UPDATE sql entirely within VBA. VBA could even loop through the records on the form and set value in each record (probably the least efficient method).

    Why do you need to save this repetitive data? Perhaps you need another parent/child table relationship.
    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: 3
    Last Post: 03-12-2017, 08:29 PM
  2. Replies: 5
    Last Post: 03-18-2014, 04:56 PM
  3. Use cmd button to fill textbox
    By shariq1989 in forum Forms
    Replies: 1
    Last Post: 07-19-2012, 08:59 AM
  4. Fill data entry textbox with variable
    By broecher in forum Forms
    Replies: 6
    Last Post: 11-18-2011, 07:54 PM
  5. Replies: 1
    Last Post: 10-31-2010, 12:01 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