Hi.
A form is bound to a table. Each field's data is displayed in various objects such as labels, text boxes etc. The table has a field called, for example, [ID]. It has hundreds of unique records but they are not sequential as it's been sorted by another field. I may want the record containing "XYZ123" to be the current record so that all the data from that record shows in the form.
What VBA commands should I be investigating please? I'm a newbie.
I have tried understanding GoToRecord however it seems to need the record number. How do I find out which record number contains "XYZ123" as it could be sorted many ways?
A form is bound to a table. Each field's data is displayed in various objects such as labels, text boxes etc. The table has a field called, for example, [ID]. It has hundreds of unique records but they are not sequential as it's been sorted by another field. I may want the record containing "XYZ123" to be the current record so that all the data from that record shows in the form.
What VBA commands should I be investigating please? I'm a newbie.
I have tried understanding GoToRecord however it seems to need the record number. How do I find out which record number contains "XYZ123" as it could be sorted many ways?
Thanks.The following example uses the GoToRecord method to make the seventh record in the form Employees current:
DoCmd.GoToRecord acDataForm, "Employees", acGoTo, 7