G
Guest
I am using VBA to navigate to a specific record on a form when that form
opens. I have attempted to attach the code to the "On Activate" event,
but after execution, the form goes to the first record, despite its
previous placement on a different record. I'm not able to attach the VBA
to the "On Current" event, because it doesn't work properly there.
The values are:
before On Activate
CurrentRecord = 1
after On Activate
CurrentRecord = 8 (from my code)
after form is loaded
CurrentRecord = 1 (apparently Access does this)
Is there any way to have the VBA code automatically run AFTER the form
is loaded and a record selected? I have a button on my form that's able
to do it, but I want to make it automatic.
opens. I have attempted to attach the code to the "On Activate" event,
but after execution, the form goes to the first record, despite its
previous placement on a different record. I'm not able to attach the VBA
to the "On Current" event, because it doesn't work properly there.
The values are:
before On Activate
CurrentRecord = 1
after On Activate
CurrentRecord = 8 (from my code)
after form is loaded
CurrentRecord = 1 (apparently Access does this)
Is there any way to have the VBA code automatically run AFTER the form
is loaded and a record selected? I have a button on my form that's able
to do it, but I want to make it automatic.