Hi
I've created a form that has 7 subforms. It is the same subform, bound to a table, just repeated. This form represents a week, and each subform is used to enter in data for each day of the week. The main form has a combo box that must have a value selected before anything else can happen. Once that value is selected, the 7 subforms are enabled, and also one of the fields is populated with the value from the main form. These subforms also have a combo box with a default value, and a text box with a default value, along with the field from the main form.
My main form has a save button, which I created just using the button wizard and default code. It also has a Close button, also created with the wizard.
My issue is that when I use the save button, if none of the subforms have been changed from the default values, none of them get saved. If a default value is changed, then that record corresponding to that subform is saved, but the others arent.
My Close button saves each of the subforms and their records, even if the defaults have not been changed.
Is that a part of the Save button that Access creates, that it will only save updated things? When the main form populates each of the subforms, they all create new entries in the table, the primary key is autonumber, so they are different records, but they dont get saved unless the default values are changed... and I'm not sure why
thanks
Josh
I've created a form that has 7 subforms. It is the same subform, bound to a table, just repeated. This form represents a week, and each subform is used to enter in data for each day of the week. The main form has a combo box that must have a value selected before anything else can happen. Once that value is selected, the 7 subforms are enabled, and also one of the fields is populated with the value from the main form. These subforms also have a combo box with a default value, and a text box with a default value, along with the field from the main form.
My main form has a save button, which I created just using the button wizard and default code. It also has a Close button, also created with the wizard.
My issue is that when I use the save button, if none of the subforms have been changed from the default values, none of them get saved. If a default value is changed, then that record corresponding to that subform is saved, but the others arent.
My Close button saves each of the subforms and their records, even if the defaults have not been changed.
Is that a part of the Save button that Access creates, that it will only save updated things? When the main form populates each of the subforms, they all create new entries in the table, the primary key is autonumber, so they are different records, but they dont get saved unless the default values are changed... and I'm not sure why
thanks
Josh
Comment