Results 1 to 2 of 2
  1. #1
    xunil is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2019
    Posts
    1

    Macro on subform

    tblMarketSymbol is linked to tblBasis in a 1 to many relationship. In frmMarketSymbol there are Next and Previous record buttons so user can "flip through" each of the MKSYM records. Each MKSYM record has many records that are in a subform. For any MKSYM record user can click inside the subform and press Ctrl + Down Arrow then Home + Up Arrow, Home + Up Arrow to move program control to the end of the records in the subform. The key strokes work, but I am wondering how to tie a macro to a button on the subform to move program control to the same place the keystrokes move it to?

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,789
    If you have a button for going to the first record and that button has a click event, it could be as simple as Me.Recordset.MoveFirst (or Me.Recordset.MoveLast to go to the last record).
    That's a vba solution. You'd have to check how it's done by a macro as I virtually never use them.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Trouble with macro within a subform
    By MLangendorf in forum Forms
    Replies: 12
    Last Post: 12-13-2016, 01:22 PM
  2. Create Subform with VBA or Macro
    By incipientclarity in forum Programming
    Replies: 2
    Last Post: 05-28-2014, 12:21 AM
  3. Replies: 6
    Last Post: 02-23-2014, 05:53 PM
  4. Macro for visible field in subform
    By g=2012 in forum Access
    Replies: 7
    Last Post: 09-11-2012, 02:23 PM
  5. Macro to navigate to tab or subform
    By larrydwilliams in forum Programming
    Replies: 1
    Last Post: 02-12-2012, 07:31 PM

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