Hi guys,
I have a main form that has two subforms, PlantList & MainView - the list shows the Latin Plant names and MainView shows data associated with the Latin name. Clicking on the list name will show the info in the other.
I use an unbound field [ID] on the main form as link for the 2 subforms.
Now, I have created another form used to carry out a multitude of search options and end up with filtered list. The Search form changes the unbound field [ID] which accurately selects the right data in the MainView form. No problem.
The problem I'm having is that I need to get the list name record in PlantList highlighted by changing the record selection in the list from the Search form before it closes.
I am using - (from the Search form - )
I think it needs a trigger, an event, on the receiving list form but I'm having no luck finding it.
Any thoughts?
Regards
Dave E
I have a main form that has two subforms, PlantList & MainView - the list shows the Latin Plant names and MainView shows data associated with the Latin name. Clicking on the list name will show the info in the other.
I use an unbound field [ID] on the main form as link for the 2 subforms.
Now, I have created another form used to carry out a multitude of search options and end up with filtered list. The Search form changes the unbound field [ID] which accurately selects the right data in the MainView form. No problem.
The problem I'm having is that I need to get the list name record in PlantList highlighted by changing the record selection in the list from the Search form before it closes.
I am using - (from the Search form - )
Code:
Dim SearchID As Integer
SearchID=Me.CurrentRecord
Forms!MainOptions!PlantList.SetFocus
Forms!MainOptions!PlantList.Form![LatinName].SetFocus
DoCmd.GoToRecord acActiveDataObject, , acGoTo, SearchID
I think it needs a trigger, an event, on the receiving list form but I'm having no luck finding it.
Any thoughts?
Regards
Dave E
Last edited by a moderator: