Gasman
Enthusiastic Amateur
- Local time
- Today, 19:14
- Joined
- Sep 21, 2011
- Messages
- 16,843
Hi all,
I have a form with an unbound combo box
The subform is linked to the combobox value
The subform records are going to grow in number with the last always at the bottom with an empty field [processed] as I wish to show them in date ascending order, and only the last 5 records will need to be amended.
Consequently i would like to go to the last record on loading the form and any change in the combobox.
From http://www.access-programmers.co.uk/forums/showthread.php?t=128815&page=2 ia have tried
where YourSubformContainerName is named Commission
That does not work. there is a delay
I then found
but I get an error on the DoCmd stating 'You can't go to the specified record.'
I have this structure in a few forms and would like it to happen in all all them, but how do I do this please?
TIA
I have a form with an unbound combo box
The subform is linked to the combobox value
The subform records are going to grow in number with the last always at the bottom with an empty field [processed] as I wish to show them in date ascending order, and only the last 5 records will need to be amended.
Consequently i would like to go to the last record on loading the form and any change in the combobox.
From http://www.access-programmers.co.uk/forums/showthread.php?t=128815&page=2 ia have tried
Code:
Me.YourSubformContainerName.Form.Recordset.MoveLast
where YourSubformContainerName is named Commission
That does not work. there is a delay
I then found
Code:
Me.Commission.SetFocus
DoCmd.GoToRecord , , acLast
I have this structure in a few forms and would like it to happen in all all them, but how do I do this please?
TIA