Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying only parts of a column

Status
Not open for further replies.

musini

Technical User
Jan 19, 2008
75
US
Hi All,

I have a string column and the lenght of the colun is around 100 charecters and not fixed to each record. Below is an example of how the column looks like.

'abc'1234'/abc''def'lombard'/def''ghi'dr'/ghi'
'abc'235'/abc''def'illinio'/def''ghi'st'/ghi'
This is just an example and all the records will have same data inside the single quotes, now in the report, I have to DISPLAY ONLY THE DATA WHICH IS NOT IN SINGL QUOTES which looks like the data below.

123 lombard dr
235 illinio st

Please help me with this. Thanks in advance.

M
 
You could use SPLIT based on a single-quote. Stitch together the even-numbered fragments. Something like
Code:
Split({your.field}, "'")[2] & Split({your.field}, "'")[4] & Split({your.field}, "'")[6]
You would also need to use UBOUND to find out how many fragments there were.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top