G
Galsaba
I have the following tables: tanent, invoice.
I have the following forms: tanent, invoice
They are linked.
I have a field in the table "tanent" called "Balance.
I made a botton on the form "invoice", on click part of the following script
will be performed:
....
Dim NewBalance As Variant
Me![New Balance] = Me![Due Ammount] - Me![Ammount paid] ' line 1
NewBalance = Me![Due Ammount] - Me![Ammount paid] ' line 2
tanent!Balance = NewBalance 'line
3
....
line 1 and 2 work ok, but when I add line 3, and click on the button
I have the message "Object Requires".
The purpose of the button is to update the field "New Balance" on the form
"invoice" (this works), and to update the field "Balance" on the table
"Tanent" (which does not work, and gives me the message "Object Required"
Any ideas what's wrong?
Thanks,
Joe
I have the following forms: tanent, invoice
They are linked.
I have a field in the table "tanent" called "Balance.
I made a botton on the form "invoice", on click part of the following script
will be performed:
....
Dim NewBalance As Variant
Me![New Balance] = Me![Due Ammount] - Me![Ammount paid] ' line 1
NewBalance = Me![Due Ammount] - Me![Ammount paid] ' line 2
tanent!Balance = NewBalance 'line
3
....
line 1 and 2 work ok, but when I add line 3, and click on the button
I have the message "Object Requires".
The purpose of the button is to update the field "New Balance" on the form
"invoice" (this works), and to update the field "Balance" on the table
"Tanent" (which does not work, and gives me the message "Object Required"
Any ideas what's wrong?
Thanks,
Joe