Results 1 to 2 of 2
  1. #1
    TenOc is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Feb 2015
    Posts
    94

    (1) Autofill from item in Combo Box (2) Autofill field from previous record

    Click image for larger version. 

Name:	AutoFill 2015-02-13.png 
Views:	14 
Size:	5.8 KB 
ID:	19707


    I have the above date entry form that is bound to a query of the table [distribution]. The Beneficiary field is a combo box. All work well, but I would like to speed up data entry by:

    (1) I would like for the Beneficiary field to auto-fill with the next person that is in the combo selection list (since the list is 100's of names) which is "Betty White". I can select Betty White manually, but I would like an "On Enter" action to do the selection automatically.

    (2) Once step (1) is completed I would like the "Distribution D" and the "Distribution Amount" to auto-fill with the values in the previous record -- that is 2/13/2015 and $25,000.00. I can not use a formula and an update query to calculate the values because they (in real live) are often the same, but about 25% are subjectively differ.



    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    No idea how to accomplish the first. It is possible to create a set of records with an INSERT SELECT sql action. Regardless, need code in some event such as button click.

    The second can be done by setting the DefaultValue property of a control in AfterUpdate event.

    Me.ControlName.DefaultValue = Me.ControlName
    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: 1
    Last Post: 12-10-2013, 06:27 AM
  2. Autofill text field on new record
    By TheHarleygirl2005 in forum Programming
    Replies: 3
    Last Post: 08-28-2013, 10:42 AM
  3. Autofill field based on combo box
    By topp in forum Access
    Replies: 2
    Last Post: 06-26-2012, 04:36 PM
  4. Replies: 7
    Last Post: 02-10-2012, 08:08 PM
  5. Autofill from Previous Field
    By Dan Kenton in forum Forms
    Replies: 1
    Last Post: 02-16-2011, 11:15 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