I have a form that has a list box and a subform linked to the selection in the listbox.
I currently have it so that when the user clicks their choice on the listbox, the subform record come up. They need to click a checkbox. This checkbox populates a field with the username (Environ).
I am trying to figure out how to return the focus back to the selection that they originally clicked on in the list box.
The users will be going down the selections in the listbox, and checking complete in the subform. In order to speed this process up, I need to have the focus revert back to the originally clicked listbox item. (Or even better, the next record down on the list.)
I have looked at and tried to use the Screen.PreviousControl but it doesn't seem to work for me.
To test it I put =[Screen].[PreviousControl].[Name]in a text box. It shows the name of the listbox "List0" and the control "Completed" when I click them alternately. But I can't figure out how to put this into practice doing what I need it to.
Any suggestions?
Thanks
Mark
I currently have it so that when the user clicks their choice on the listbox, the subform record come up. They need to click a checkbox. This checkbox populates a field with the username (Environ).
I am trying to figure out how to return the focus back to the selection that they originally clicked on in the list box.
The users will be going down the selections in the listbox, and checking complete in the subform. In order to speed this process up, I need to have the focus revert back to the originally clicked listbox item. (Or even better, the next record down on the list.)
I have looked at and tried to use the Screen.PreviousControl but it doesn't seem to work for me.
To test it I put =[Screen].[PreviousControl].[Name]in a text box. It shows the name of the listbox "List0" and the control "Completed" when I click them alternately. But I can't figure out how to put this into practice doing what I need it to.
Any suggestions?
Thanks
Mark