Hi there. I have four separate queries each producing a value named "Sum of Price" for a particular category of product. they are embedded into a subform of a booking form for with Master & child fields set accordingly. on the booking form I have a text box I want to show the total of all the queries. I'm using code:
Which works fine unless there are no values for one of the queries to work on leaving the query result blank in which case I get "#Type!" in the field. (If it's just one query feeding the textBox then I get "#Error")
Can I put a default value of zero onto the query somehow or maybe an If statement on the textbox...???? Thanks
Code:
=[EventBookings Query subform].[Form]![Sum Of Price]+[BBQBookings Query subform].[Form]![Sum Of Price]+[CampBookings Query subform].[Form]![SumOfPrice]
Can I put a default value of zero onto the query somehow or maybe an If statement on the textbox...???? Thanks
Last edited: