In Access 2007 I have a main form with several subforms. All forms are unbound, and the recordsets for the forms are set during the OnOpen-event in the main-form.
I use ADO and OleDB to connect to the SQL-server and to bind the recordsets with the forms.
Everything works OK when the forms open the first time.
In the main form I have a combo that resets the recordsets for all the forms depending on the selected value. When I do this, the recordset in the main form changes ok, but all the subforms are getting closed, so it's impossible to set their recordset-property. The subforms are not linked to the main form.
I have spent a couple of days trying to solve this, I'll post some of my code if that can help.
Regards
Jon Ole
I use ADO and OleDB to connect to the SQL-server and to bind the recordsets with the forms.
Everything works OK when the forms open the first time.
In the main form I have a combo that resets the recordsets for all the forms depending on the selected value. When I do this, the recordset in the main form changes ok, but all the subforms are getting closed, so it's impossible to set their recordset-property. The subforms are not linked to the main form.
I have spent a couple of days trying to solve this, I'll post some of my code if that can help.
Regards
Jon Ole
Comment