G
Guest
I do have the following
1) a form called “customersâ€
2) a subform in the “customers†form, called “billsopenvalueâ€(Datasheet)
3) a field in the the form “billsopenvalue†is called “restingâ€
4) a Form called “receivedpayments†with a field named “â€paymentamountâ€
What I would like to do:
If I change in the “receivedpayments†form the field “paymentamountâ€, the
the field “resting†in the “customersâ€forms subform “billsopenvalue†should
be changed automatically.
What did I do:
I tried to run an “afterUpdate†doCmd in the field “paymentamount†of the
receivedpayments†form.
Like this:
Private Sub paymentamount_AfterUpdate()
DoCmd.Requery “Forms!customers!billsopenvalue.restingâ€
End Sub
Result:
Run-time error ‘2109’
There is no field named ‘Forms’customers!billsopenvalue.resting’ in the
current record.
BUT in the subform “billsopenvalue†of the form “customers†is the field
named â€restingâ€.
Has someone an idea how I can change my code so that it is running like I
described above?
Thanks
Klaus
1) a form called “customersâ€
2) a subform in the “customers†form, called “billsopenvalueâ€(Datasheet)
3) a field in the the form “billsopenvalue†is called “restingâ€
4) a Form called “receivedpayments†with a field named “â€paymentamountâ€
What I would like to do:
If I change in the “receivedpayments†form the field “paymentamountâ€, the
the field “resting†in the “customersâ€forms subform “billsopenvalue†should
be changed automatically.
What did I do:
I tried to run an “afterUpdate†doCmd in the field “paymentamount†of the
receivedpayments†form.
Like this:
Private Sub paymentamount_AfterUpdate()
DoCmd.Requery “Forms!customers!billsopenvalue.restingâ€
End Sub
Result:
Run-time error ‘2109’
There is no field named ‘Forms’customers!billsopenvalue.resting’ in the
current record.
BUT in the subform “billsopenvalue†of the form “customers†is the field
named â€restingâ€.
Has someone an idea how I can change my code so that it is running like I
described above?
Thanks
Klaus