47redlands
Programmer
I have a textfield and I want the text field to return the price of seats form frmFindSeats. If I type this in the control source for the textfield it will work =[Forms]![frmFindSeats]![txtSeatPrice]
It returns the seat price of £12
However I need to check if the customer is a friend if so reduce the price by 10% (note I am also checking for null values) but the code does not work. It returns with #Error in side the text box
=IIf([Friend]=TRUE,nz([Forms]![frmFindSeats]![txtSeatPrice],0)*0.9,nz([Forms]![frmFindSeats]![txtSeatPrice],0))
It returns the seat price of £12
However I need to check if the customer is a friend if so reduce the price by 10% (note I am also checking for null values) but the code does not work. It returns with #Error in side the text box
=IIf([Friend]=TRUE,nz([Forms]![frmFindSeats]![txtSeatPrice],0)*0.9,nz([Forms]![frmFindSeats]![txtSeatPrice],0))