M
M Skabialka
I have created a new database which has forms with sub-forms, similar to
many I have created in the past.
There are many cases where, if information is changed in one sub-form, the
information in another sub-form must be updated, so in the after update
event I use code like this (same as in the other databases)
Private Sub HoursAssigned_AfterUpdate()
ResourceAmount = Rate * HoursAssigned
Forms![frmACRN]![frmACRN subform3].Requery
End Sub
However, "frmACRN subform3" is not updating; it is a summary of information
in "frmACRN subform2" where the HoursAssigned field gets updated. These are
3 subforms on the main form "frmACRN". When I change the HoursAssigned data
on subform2, the summary hours on subform3 should get updated but it
doesn't.
"frmACRN subform2" has linked child and master fields of:
ContractNumber;LineNumber;ProjectNumber
"frmACRN subform3" has linked child and master fields of:
ContractNumber (it's a summary of of all line and project numbers)
What would make code like this -
Forms![frmACRN]![frmACRN subform3].Requery
work on some forms and not on others?
Mich
many I have created in the past.
There are many cases where, if information is changed in one sub-form, the
information in another sub-form must be updated, so in the after update
event I use code like this (same as in the other databases)
Private Sub HoursAssigned_AfterUpdate()
ResourceAmount = Rate * HoursAssigned
Forms![frmACRN]![frmACRN subform3].Requery
End Sub
However, "frmACRN subform3" is not updating; it is a summary of information
in "frmACRN subform2" where the HoursAssigned field gets updated. These are
3 subforms on the main form "frmACRN". When I change the HoursAssigned data
on subform2, the summary hours on subform3 should get updated but it
doesn't.
"frmACRN subform2" has linked child and master fields of:
ContractNumber;LineNumber;ProjectNumber
"frmACRN subform3" has linked child and master fields of:
ContractNumber (it's a summary of of all line and project numbers)
What would make code like this -
Forms![frmACRN]![frmACRN subform3].Requery
work on some forms and not on others?
Mich