grantwilliams
Programmer
Hi All,
I have an unbound subform which contains fields bound to a query which is assigned programatically using the following code:
Forms!Main!MainSub.Form.RecordSource = "qrFrmSubSetup"
The reason I have chosen to do it this way is that I have a temporary database which remembers the Event selected. When the subform is opened, it opens the temp DB as a recordset and assigns the value remembered to the first field. I then assign the recordsource (query) to the subform which fills the subsequent fields.
The query selects the record from the Event table which has the ID selected in the first field.
When I update the first field, both the query and the temp DB respond to the new value selected and the subform will set the remainder of the fields to null UNLESS I have selected the first record of the Event table. This is also the case when opening the subform i.e. unless I have the first record of the Event table selected, I end up with a whole lot of empty fields.
Anybody seen this before?
I have an unbound subform which contains fields bound to a query which is assigned programatically using the following code:
Forms!Main!MainSub.Form.RecordSource = "qrFrmSubSetup"
The reason I have chosen to do it this way is that I have a temporary database which remembers the Event selected. When the subform is opened, it opens the temp DB as a recordset and assigns the value remembered to the first field. I then assign the recordsource (query) to the subform which fills the subsequent fields.
The query selects the record from the Event table which has the ID selected in the first field.
When I update the first field, both the query and the temp DB respond to the new value selected and the subform will set the remainder of the fields to null UNLESS I have selected the first record of the Event table. This is also the case when opening the subform i.e. unless I have the first record of the Event table selected, I end up with a whole lot of empty fields.
Anybody seen this before?