stevenblanc
Registered User.
- Local time
- Today, 10:12
- Joined
- Jun 27, 2011
- Messages
- 103
[SOLVED] GotoRecord 1 and 2 mixup
Hi there folks,
Little trouble here. Probably a simple thing that I'm overlooking.
I was using the following line of code in the double-click event of a list box to allow users to navigate a form to a particular record:
However, I found that the records were being mixed up. So I replaced the code with:
and the event navigated to the second record. So I tried:
and the event navigated to the first record. I can't for the life of me understand what the issue is. There are no filters on the form.
Anyone encountered this before?
Cheers,
Steven
Hi there folks,
Little trouble here. Probably a simple thing that I'm overlooking.
I was using the following line of code in the double-click event of a list box to allow users to navigate a form to a particular record:
Code:
DoCmd.GoToRecord acDataForm, "frmCustomerRecord", lstCustomers
However, I found that the records were being mixed up. So I replaced the code with:
Code:
DoCmd.GoToRecord acDataForm, "frmCustomerRecord", 1
and the event navigated to the second record. So I tried:
Code:
DoCmd.GoToRecord acDataForm, "frmCustomerRecord", 2
and the event navigated to the first record. I can't for the life of me understand what the issue is. There are no filters on the form.
Anyone encountered this before?
Cheers,
Steven
Last edited: