Hi
I have a SQL table witch column LICTYPE which holds such values as
06/xxxxx/LIPREM
06/yyyyy/LIPREM
06/xxxyy/CLUB
06/yyxxx/CLUB
05/xxxxy/LATEMP
In an ASP form, i'd like to have a select list of distinct LICTYPES such as
LIPREM
CLUB
LATEMP
etc etc
so i need to loop through the contents of column LICTYPE to extract the text using something like ?
I want to then hold the distinct values to display in a drop-down select on an ASP form ?
I thought a stored procedure might be ideal, but how could i best write this ?
thanks
kim
I have a SQL table witch column LICTYPE which holds such values as
06/xxxxx/LIPREM
06/yyyyy/LIPREM
06/xxxyy/CLUB
06/yyxxx/CLUB
05/xxxxy/LATEMP
In an ASP form, i'd like to have a select list of distinct LICTYPES such as
LIPREM
CLUB
LATEMP
etc etc
so i need to loop through the contents of column LICTYPE to extract the text using something like ?
Code:
MyVar = Col003
MyArray = Split(MyVar,"/")
MyTextSel = Ubound(MyArray)
MyLicTypes = MyArray(MyTextSel)
I want to then hold the distinct values to display in a drop-down select on an ASP form ?
I thought a stored procedure might be ideal, but how could i best write this ?
thanks
kim