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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

seperate a string 1

Status
Not open for further replies.

tomk01

ISP
Oct 18, 2004
69
US
I have a field that looks like this: E(1),D(AB),E(12345),...

I need to pull that data into a temp table that looks like this:
DET Detcode
E 1
D AB
E 12345

I was thinking somthing like this:

select left(field,1)as detcode
into temptabel
from table;

select mid(field,3,1)
into temptable
from table
where mid(field,5,1) = ","

the problem with that is it will take a tremendous code to cover all possibilities.

any help is very appreciated
 
how many numbers did you put in the table? What is the longest string you are trying to process?

Leslie
 
ok I added 300 Records to my table and now it seems to work(I get data). Thank you all for your help!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top