I have two text boxes on a form which need to be able to calculate values, I can run an If statement in VBA and that runs fine; which is:
If Me.OrderOrigin = "Home" Then
Me.IncostHome = Me.TotalPrice * 0.0525 + 0.4
Else
Me.IncostHome = Me.TotalPrice = "£0.00"
End If
but when I try to convert this statement into an IIF expression things go wrong and normally the program just bombs out!
Could someone please tell me the best way to put this into an IIF expression using the expression builder; I need it to be the control source for the text box.
Many thanks,
Mikee.
Do or do not, there is no try. - Yoda
If Me.OrderOrigin = "Home" Then
Me.IncostHome = Me.TotalPrice * 0.0525 + 0.4
Else
Me.IncostHome = Me.TotalPrice = "£0.00"
End If
but when I try to convert this statement into an IIF expression things go wrong and normally the program just bombs out!
Could someone please tell me the best way to put this into an IIF expression using the expression builder; I need it to be the control source for the text box.
Many thanks,
Mikee.
Do or do not, there is no try. - Yoda