Hello,
I am working on a form in which I am attempting to use the expression builder to automatically fill-in a text box based on user entries in other controls on the form.
Those controls are one text box, four combo boxes, and one check box; I would like the expression builder to concatenate the values in those controls into one string and display it in the text box. If and only if all the controls are left blank, I would like an alternate string, "Enter a new fabric" to appear. I have set all six controls to contain nothing (="" for the combo boxes and text box, and =False for the check box) as their default values to enable this to work.
I am attempting to use the Nz function; the concatenation part of this is working great - the text box populates nicely as the controls are updated in form view.
However, the default string that I would like to appear when all the controls are empty/null is never appearing. I assume this means that even when blank, all the controls are not evaluating to null.
If anyone can offer any advice on how I might correct this, please let me know. As always, I greatly appreciate any help. Below is my expression:
=Nz([txtFabricWidth] & [cmbFabricWidthUnits].[Column](1) & " " & [cmbFabricContent].[Column](1) & " " & IIf([chkFabricPrinted]=True,"Printed","") & " " & [cmbFabricType].[Column](1) & " " & [cmbFabricColor].[Column](1),"Enter a new fabric below")
Thanks