MarcieFess
Registered User.
- Local time
- Today, 15:00
- Joined
- Oct 25, 2012
- Messages
- 107
I've created a button to go to the next product in my product table.
The code:
Private Sub btnNextProduct_Click()
DoCmd.RunCommand acCmdRecordsGoToNext
End Sub
The problem is that it's not going to the next product in the Product table...it's going to the next record in the Store Products table...which is where we keep track of how many of a particular UPC in the Product table is in each particular store.
I want this button to go to the next UPC because when we get to where we have 25 stores in the database, we don't want to have to press "Next Product" 25 times just to get to the actual "next product".
Thanks for your help!
The code:
Private Sub btnNextProduct_Click()
DoCmd.RunCommand acCmdRecordsGoToNext
End Sub
The problem is that it's not going to the next product in the Product table...it's going to the next record in the Store Products table...which is where we keep track of how many of a particular UPC in the Product table is in each particular store.
I want this button to go to the next UPC because when we get to where we have 25 stores in the database, we don't want to have to press "Next Product" 25 times just to get to the actual "next product".
Thanks for your help!