I am attempting to retrieve an address from our new database
which is stored at address.address_1.
All of the address lines are stored in this one field and need to be extracted and entered onto my report so I can suppress blank sections.
I have successfully located the separator "char(10)" and returned their positions. I have also managed to extract the individual lines and got the lines to display on my report.
The problem arises when I refresh the data and get the following.
"Start position for string searching is less than 0 or not an integer".
Example formula :-
if {@Address Line 3 Working} = 0 then
trim(mid({address.address_1},{@Address Line 2 Working},{@Address Length}))
else
trim(mid({address.address_1},{@Address Line 2 Working},{@Address Line 3 Working}-{@Address Line 2 Working}))
Working formulas returns location of char(10)
Why does the formula work initially but not on refresh?
which is stored at address.address_1.
All of the address lines are stored in this one field and need to be extracted and entered onto my report so I can suppress blank sections.
I have successfully located the separator "char(10)" and returned their positions. I have also managed to extract the individual lines and got the lines to display on my report.
The problem arises when I refresh the data and get the following.
"Start position for string searching is less than 0 or not an integer".
Example formula :-
if {@Address Line 3 Working} = 0 then
trim(mid({address.address_1},{@Address Line 2 Working},{@Address Length}))
else
trim(mid({address.address_1},{@Address Line 2 Working},{@Address Line 3 Working}-{@Address Line 2 Working}))
Working formulas returns location of char(10)
Why does the formula work initially but not on refresh?