Hi
I have this expression in one of my textbox in a form:
="CA" & [lbxCuttingTools].[Column](0)
& IIf(IsNull(Nz([txtInsertID])),"","-"
& [lbxInserts].Column](0))
& IIf(IsNull(Nz([txtAdapterID])),"","-"
& [lstAdapterResult].[Column](0))
When testing my form with a record that I know does not contain a value, in this case, txtInsertID, the output was not what I wanted. For example I was getting one too many dashes.
This is what i have as a result: CA934--276
Am I missing something in my expression?
I have this expression in one of my textbox in a form:
="CA" & [lbxCuttingTools].[Column](0)
& IIf(IsNull(Nz([txtInsertID])),"","-"
& [lbxInserts].Column](0))
& IIf(IsNull(Nz([txtAdapterID])),"","-"
& [lstAdapterResult].[Column](0))
When testing my form with a record that I know does not contain a value, in this case, txtInsertID, the output was not what I wanted. For example I was getting one too many dashes.
This is what i have as a result: CA934--276
Am I missing something in my expression?