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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Erro in Calculation based on subform - Can't get sub to work!! 1

Status
Not open for further replies.

LarryDavidow

Technical User
Apr 22, 2002
56
US
I have a field in the main form that calculates values from a subform. It works fine until the query that the subform is based on, doesn't return any values. I get a #error in the field.

I have tried a few things based on various posts in the forum. One of the posts that made the most sense, was to add Me.txt190 = Forms![formname]![subformname]![controlname] to the On Current event in the main form. For some reason, my field is not updating. If I change the Controlname value to a field in my main form, it works fine (data is taken from the relevant field and placed in the txt190 field)

Any pointers would be much appreciated. All I'm trying to do here is replace the #error with either Null or 0.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top