Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a list box that has some blanks in it, so I used an expression to remove them. Upon doing so, the sort no longer works as it did previously. I want to sort ascending. I tried changing the sort from State - Auto Ascending to Expression - Ascending and then placing the expression in the box below, but it does not seem to work. Here is the expression I am using:
=If(Len(Buyer)>0,Buyer)
Have you tried sorting by Text in ascending?
Yes, it does not change. When I just choose to sort by Text Ascending, I still get the blank value on top even with the expression.
Have you removed checks from auto and expression, just with Text it isn't working?
That is correct. It does sort them Ascending, but the blank still shows up first.
What is the expression used for the list box? Isn't it this guy?
=If(Len(Buyer)>0,Buyer)
Yes, that is the expression that I am using.
Why are you even seeing blanks then? You have me completely confused? Can you share sample or images?
I suspect that the "blank" buyer isn't really blank. Maybe it's a space or a number of spaces.
Try:
If(Len(trim(Buyer))>0,Buyer)
I added a sample QVW file.