Results 1 to 4 of 4
  1. #1
    ahuffman24 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    99

    Macro next/previous record buttons

    Hi,

    I am using Access 2016. I have a database that keeps track of orders and info about those orders. One of the sections of the database allows the user to select a specific order to view the details of. However, each order may have more than 1 item on it. For example, the picture below shows order number 55555 has both item 4.00 and 5.00:

    Click image for larger version. 

Name:	All orders page button help.jpg 
Views:	31 
Size:	85.0 KB 
ID:	38600

    The user can then choose which item to inspect for the order, and it brings them to this page:

    Click image for larger version. 

Name:	chosen order button help.jpg 
Views:	31 
Size:	172.0 KB 
ID:	38601



    As you can see in the above picture, I have two buttons with a left and right arrow on them. I want those arrows to scroll between each of the items on the chosen order. Keeping with the previous example, if the user chooses to view the details of item 4.00 on order 55555, then if they click the right arrow button, it should display the information for item 5.00 of order 55555. Right now, I have the buttons set up in macros to scroll to the "next" record for the right arrow button and the "previous" record for the left arrow button, but they only scroll through the serial numbers of the current order instead of scrolling order to order. To clarify, if I am on order 55555 of item 4.00 and I click the right arrow button, the next serial number will become highlighted in the subform, but what I want the arrow to do is to take me to the details of order 55555 of item 5.00. Is there a way I can make this happen?

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    ... why not post this on your original thread? It's the same question, just a restatement of what you need.

  3. #3
    ahuffman24 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    May 2019
    Posts
    99
    I did not want to confuse anyone because I changed my form and am having a slightly different issue now than what I described in the other thread

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    post back your current version please if you still need help with this.

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

Similar Threads

  1. Next/Previous Record Buttons
    By ahuffman24 in forum Access
    Replies: 20
    Last Post: 06-06-2019, 03:15 PM
  2. Replies: 2
    Last Post: 12-01-2014, 02:53 AM
  3. Assigning Macros to Buttons using the Macro Builder
    By AccessN00bee in forum Macros
    Replies: 17
    Last Post: 10-23-2014, 08:46 PM
  4. Showing/Hiding Navigation Buttons in VBA or Macro
    By chris.williams in forum Forms
    Replies: 3
    Last Post: 11-15-2011, 10:38 AM
  5. Using buttons with macro in report
    By CIIIHAN in forum Access
    Replies: 21
    Last Post: 09-16-2011, 01:14 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