Link to home
Start Free TrialLog in
Avatar of nito8300
nito8300Flag for United States of America

asked on

function to replace comma, then loop

hello all,
I'm looking to have a user defined function or a function i can include in a new field in the table itself based on the existing field named: code

i have a table with a field with the following data:
code = "AB, BC, CD"
this field has variable length. so there could be x number of codes.

i would like to convert the field to: <a href='mypage.asp?code=' & code1 & "'>" & code1 & "</a>"
and then loop thru all codes.

thank you all.
Avatar of D B
D B
Flag of United States of America image

So, in your above example, are you saying you want the final result to be:
<a href='mypage.asp?code=AB'>AB</a><a href='mypage.asp?code=BC'>BC</a><a href='mypage.asp?code=CD'>CD</a>

ASKER CERTIFIED SOLUTION
Avatar of D B
D B
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial