Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in field

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
HI,
i have a cute little form that is a petty cash voucher.
the mainform is linked to a subform. The subform has the fields; date,description, amount.
On the main form I have a field that i want to reflect the total amount of the entries in the subform.
So . . . on the main form in the "total" field the field,s control source is

=Sum([Forms]![frmPettyCashsub]![Amount])

But the word "Error" shows up in this field when viewing the form.

any ideas on how to correct this??
thanks in advance and happy fourth!!!!
 
Go to the design view of your subform. In the footer of the form, create a text box called SubTotal. The control source becomes "=sum([Amount])" without the quotes. Now on the mainform, create another text box. Set the contol source in it to be: "([frmPettyCashsub].Form!SubTotal" without the quotes. This worked when I got a similar error.

M. Dillon

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top