Hi
I have this expression in one of my textbox in a form:
="CA" & [lbxCuttingTools].[Column](0)
& IIf(IsNull([txtInsertDesc]),"","-"
& [lbxInserts].[Column](0))
& IIf(IsNull([txtAdapter]),"","-"
& [lstAdapterResult].[Column](0))
[Column](0} always equates to the Primary key
When testing my form with records that I know does not contain a value, in this case, txtInsertDesc, 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([txtInsertDesc]),"","-"
& [lbxInserts].[Column](0))
& IIf(IsNull([txtAdapter]),"","-"
& [lstAdapterResult].[Column](0))
[Column](0} always equates to the Primary key
When testing my form with records that I know does not contain a value, in this case, txtInsertDesc, 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?