Hi,
I have a form that is generated from a search from the original form. The new form displays a query from which I want to double click one line and have it select the exact item from the related combo box and text box on the original form.
This is the code that I started and it's executed from the search form. While it enters the correct value in the combo box...it doesn't actively choose it. If this code is generated correctly, choosing the correct item from the combo list will trigger an event which will populate other list boxes on the form.
Here's what I started with on the search form:
Private Sub MakeName_DblClick(Cancel As Integer)
Forms!Form1.Combo2.SetFocus
Forms!Form1.Combo2.Value = RTrim(MakeName.Value) 'this would be "Ford"
Forms!Form1.List4.SetFocus
Forms!Form1.List4.Value = RTrim(modelname.Value) 'this would be "Ranger"
End Sub
I have a form that is generated from a search from the original form. The new form displays a query from which I want to double click one line and have it select the exact item from the related combo box and text box on the original form.
This is the code that I started and it's executed from the search form. While it enters the correct value in the combo box...it doesn't actively choose it. If this code is generated correctly, choosing the correct item from the combo list will trigger an event which will populate other list boxes on the form.
Here's what I started with on the search form:
Private Sub MakeName_DblClick(Cancel As Integer)
Forms!Form1.Combo2.SetFocus
Forms!Form1.Combo2.Value = RTrim(MakeName.Value) 'this would be "Ford"
Forms!Form1.List4.SetFocus
Forms!Form1.List4.Value = RTrim(modelname.Value) 'this would be "Ranger"
End Sub