View Full Version : Viewing Records if no subform info is present


FlashG
01-08-2002, 03:50 PM
I have a Task form that has a subform Parts. When I want to show all records or do any sort of filters it will not show those records that do not have any parts associated with them. Some task are jsut action tasks and have no parts. All the Tasks that have at least one part in the part table show up fine. How do I show those action tasks?

Also, on this form I can add parts via the subform but I am unable to change anythign on the main form. It is based on a query that has the Tasks table and two totals fields. The only way I can edit at the moment is to call up a form that is based soley on the Tasks table without the totals. Is there a way I can edit on the fly with a table based on a query with totals?

Pat Hartman
01-08-2002, 06:56 PM
Totals queries are not updateable. The query for the main form should not include the table that the subform uses. You can add a footer to the subform with a control that totals the data on the subform.

=Sum(SomeField)

FlashG
01-09-2002, 08:56 AM
Ok, I think I got what you are saying, but how do I display this control on the main form? I tried setting the control on the main form to =Sum([subform].[hours]) but that didnt' work and I couldn't find a way to set it = to that control...

Rich
01-09-2002, 10:49 AM
Since your new field in the subform has the Sum you don't need to do it again. Just set the control on the main to reference the sub
ie. =Forms!MainFormName!Subform Name subform.Form!ControlName
HTH