Heatshiver
Registered User.
- Local time
- Today, 16:19
- Joined
- Dec 23, 2011
- Messages
- 263
I have a few complex queries that consist of several other queries, to produce certain totals. These do work and produce a number.
The totals these queries produce are to be committed to a table. Because of the enormity of these queries, I cannot put all the totaling queries into the Record Source of a form.
Instead I want to have forms pop-up that each have one total query for their Record Source. These forms are to remain invisible. I then have a main form appear that has table fields for all the totals produced by the total queries. I then have the table fields on the main form equal the total query fields produced on the invisible forms.
I have done this, but I run into two problems:
1) I cannot change the date on the total query forms. I want the main form to change the date of the total query forms so that it can update new totals as needed.
2) I cannot get the values from the total query forms to carry over to the main form.
These two problems give these two errors: 3348 (Cannot add record(s); joing key of table not in recordset.) & 3426 (Recordset not updateable.)
I've tried everything from changing the the dynaset to inconsistent updates, to attempting to add FKs into the query, to trying to load the fields via VBA in the main form and the subform in the main form.
Any help would be much appreciated.
The totals these queries produce are to be committed to a table. Because of the enormity of these queries, I cannot put all the totaling queries into the Record Source of a form.
Instead I want to have forms pop-up that each have one total query for their Record Source. These forms are to remain invisible. I then have a main form appear that has table fields for all the totals produced by the total queries. I then have the table fields on the main form equal the total query fields produced on the invisible forms.
I have done this, but I run into two problems:
1) I cannot change the date on the total query forms. I want the main form to change the date of the total query forms so that it can update new totals as needed.
2) I cannot get the values from the total query forms to carry over to the main form.
These two problems give these two errors: 3348 (Cannot add record(s); joing key of table not in recordset.) & 3426 (Recordset not updateable.)
I've tried everything from changing the the dynaset to inconsistent updates, to attempting to add FKs into the query, to trying to load the fields via VBA in the main form and the subform in the main form.
Any help would be much appreciated.