Thank you for reading my post.
I am tracking Customers, their contracts with us and each of the services that make up each contract.
The form structure I'm using is a main form with 10 sub forms.
Main form - "frmCustomerResEnter" - RS is "tblCustomers", Pk "CustomerID"
1st Sub Form - "sfrmContracts" - RS is "tblContracts", Pk "ContractID", Fk "CustomerID"
2nd Sub Form - "sfrmServiceItems" - RS is "tblServiceItems", Pk "ServiceItemID", Fk's "ContractID" and "ServiceTypeItemID"
3rd Sub Form - "sfrmHavcItems" - RS is tblHvacItems, Pk "HavcItemID", Fk "ServiceTypeItemID" (a composite key of "ServiceItemID" & "SerivceTypeID")
(There are 7 of the above sub forms, each for a different type of service. Each becomes visible based on the value entered in "cboServiceItemID"
10th Sub Form - "sfrmContServicesSum", RS - "qryContServicesSum" (This sub form displays the total accumlated cost for each of the
different services that make up the contract.)
What I'm trying do (unsucssefuly so far) is update the values shown in "sfrmContServicesSum" on the after update event of the "cost" control of "sfrmHavcItems". (And each of the other sub forms.)
I have added a cmd button on the "sfrmServiceItems" to refresh the form data. "DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70" This does update the data in "sfrmContServicesSum" but I would like the update to happen each time a cost is entered for a new item.
I tried "Me.Parent.sfrmServiceItems.Form.Requery" on the after update event of "cost" on "sfrmHavcItems" but that doesn't seem to work. Not sure if I'm using the wrong event, the worng syntax or both.
Any help would be much appreciated.
I am tracking Customers, their contracts with us and each of the services that make up each contract.
The form structure I'm using is a main form with 10 sub forms.
Main form - "frmCustomerResEnter" - RS is "tblCustomers", Pk "CustomerID"
1st Sub Form - "sfrmContracts" - RS is "tblContracts", Pk "ContractID", Fk "CustomerID"
2nd Sub Form - "sfrmServiceItems" - RS is "tblServiceItems", Pk "ServiceItemID", Fk's "ContractID" and "ServiceTypeItemID"
3rd Sub Form - "sfrmHavcItems" - RS is tblHvacItems, Pk "HavcItemID", Fk "ServiceTypeItemID" (a composite key of "ServiceItemID" & "SerivceTypeID")
(There are 7 of the above sub forms, each for a different type of service. Each becomes visible based on the value entered in "cboServiceItemID"
10th Sub Form - "sfrmContServicesSum", RS - "qryContServicesSum" (This sub form displays the total accumlated cost for each of the
different services that make up the contract.)
What I'm trying do (unsucssefuly so far) is update the values shown in "sfrmContServicesSum" on the after update event of the "cost" control of "sfrmHavcItems". (And each of the other sub forms.)
I have added a cmd button on the "sfrmServiceItems" to refresh the form data. "DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70" This does update the data in "sfrmContServicesSum" but I would like the update to happen each time a cost is entered for a new item.
I tried "Me.Parent.sfrmServiceItems.Form.Requery" on the after update event of "cost" on "sfrmHavcItems" but that doesn't seem to work. Not sure if I'm using the wrong event, the worng syntax or both.
Any help would be much appreciated.