Hi all!!
Situation. I have a combo box on my main form that I force users to select the Plant Name and Plant Code. When it is selected other buttons are made visible. One of the buttons on the form is for tblPlantInfo maintenance. The query for the combo box and the form address the same table, the combo box only brings in 2 fields while the form is a select * on the table.
The form works fine for editing and such but what I want to do is have the form open up with the entire recordset for tblPlantInfo but to be set on the record selected from the combo box.
Since the recordsource is the same for the 2 objects I thought I could use the ListIndex from the combo box (stored in a public variable) to dictate the record being viewed in the maintenance form but I can't figure out how to change rows in the Recordsource until the index's match. Everything I try on the form is read only!!
What am I missing?
Thanks,
Joel
Joel
Situation. I have a combo box on my main form that I force users to select the Plant Name and Plant Code. When it is selected other buttons are made visible. One of the buttons on the form is for tblPlantInfo maintenance. The query for the combo box and the form address the same table, the combo box only brings in 2 fields while the form is a select * on the table.
The form works fine for editing and such but what I want to do is have the form open up with the entire recordset for tblPlantInfo but to be set on the record selected from the combo box.
Since the recordsource is the same for the 2 objects I thought I could use the ListIndex from the combo box (stored in a public variable) to dictate the record being viewed in the maintenance form but I can't figure out how to change rows in the Recordsource until the index's match. Everything I try on the form is read only!!
What am I missing?
Thanks,
Joel
Joel