davidrsutton
Programmer
Afternoon all..
Here is my scenario:
I have a form - frminvoice - which has a field on it called invoiceamount which simply stores a monetary value.
I also have a subform on here that for each row has an issueamount field (number field)
I have another textbox on the form frminvoice - Total - that keeps a running total of the issueamounts field in the subform .
Now, I would like the 'Close form' button (command34)on my form to be disabled, but enabled when frminvoice.total = frminvoice.invoiceamount
I have tried attaching the following code to the afterupdate property of the 'total' field with no luck:
If frminvoice.total.value = frminvoice.invoiceamount.value then frminvoice.command34.enabled=true else frminvoice.command34=false
Help?!
Thanks in advance,
Dave.
Here is my scenario:
I have a form - frminvoice - which has a field on it called invoiceamount which simply stores a monetary value.
I also have a subform on here that for each row has an issueamount field (number field)
I have another textbox on the form frminvoice - Total - that keeps a running total of the issueamounts field in the subform .
Now, I would like the 'Close form' button (command34)on my form to be disabled, but enabled when frminvoice.total = frminvoice.invoiceamount
I have tried attaching the following code to the afterupdate property of the 'total' field with no luck:
If frminvoice.total.value = frminvoice.invoiceamount.value then frminvoice.command34.enabled=true else frminvoice.command34=false
Help?!
Thanks in advance,
Dave.