Results 1 to 4 of 4
  1. #1
    ittechguy is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Aug 2015
    Posts
    218

    How to go to record in subform?

    I have a form which is used to either add a new customer, or search through customers. If adding a new customer, currently the user fills out the required boxes and hits submit, then as long as all required boxes are filled in (I have if statements to ensure this), the record is added. Currently the user doesn't get any proof that the record has been added. I could have a msgBox popup, but I think that'd be annoying.



    Rather, I would like if the subform remained unfiltered but the it went to the record which was added. That is, that record would be selected and in view. Like, if it was near the bottom of the subform, you wouldn't have to scroll down to see it. How can this be done?


    Click image for larger version. 

Name:	victory.png 
Views:	17 
Size:	43.8 KB 
ID:	22666

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Review https://www.accessforums.net/program...lue-51977.html

    If the subform records are not sorted then the new record will probably be at the end and could probably use MoveLast method.

    Bing: Access vba subform movelast
    https://bytes.com/topic/access/answe...record-subform
    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
    ittechguy is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Aug 2015
    Posts
    218
    The subform records are not sorted. They are not even linked to the main form (which idk, technically its not even a subform then?). The purpose of the subform is for users to see all of the customers. It can then be filtered using the form in the footer. If a user types in or selects a value in one of the combo box, the subform is automatically filtered.

    I am going to give MoveLast a try. Thx!

  4. #4
    ittechguy is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Aug 2015
    Posts
    218
    Movelast method worked perfectly! Thanks.

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

Similar Threads

  1. Replies: 7
    Last Post: 04-15-2014, 01:15 PM
  2. Replies: 8
    Last Post: 08-09-2013, 09:52 AM
  3. Replies: 6
    Last Post: 08-22-2012, 03:24 AM
  4. Replies: 6
    Last Post: 05-05-2012, 08:43 AM
  5. Replies: 7
    Last Post: 07-15-2011, 01:58 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