Rabu, 04 April 2012

[MS_AccessPros] Reference a suform in a report

 

I have a a main form called frmWorkDetails which has to subforms called sfrmWOParts and sfrmWOLabor. On sfrmWOLabor there is a txtbox called [Labor Total] and on sfrmWOParts there is a textbox called [Parts Total]

I am trying to reference the two fields in my report. The frmWorkDetails is open when I run the report but I get a #Type error in my txtTotal textbox on my report.

Expression in the txtTotal box is:

=Nz([Forms]![frmWorkOrderDetails]![sfrmWorkorderParts].[Form]![Parts Total])+Nz([Forms]![frmWorkOrderDetails]![sfrmWorkorderLabor].[Form]![Labor Total])

What am I doing wrong?

Thanks,

Art Lorenzini
Sioux Falls, SD

__._,_.___
.

__,_._,___

Tidak ada komentar:

Posting Komentar