> > import this data? Do I
> > need to eliminate all of the non-numeric characters
[quoted text clipped - 5 lines]
> writing potentiually hundreds of lines of code to
> compensate for all of the possible input parameters
Tool late, sound like the data is already written!
Rather than trying to eliminate all the illegal characters, just
select the ones you know are valid i.e. numeric characters e.g.
SELECT
IIF(MID(MyDataCol,1,1) LIKE '[0-9]', MID(MyDataCol,1,1), '') &
IIF(MID(MyDataCol,2,1) LIKE '[0-9]', MID(MyDataCol,2,1), '') &
IIF(MID(MyDataCol,3,1) LIKE '[0-9]', MID(MyDataCol,3,1), '') &
IIF(MID(MyDataCol,4,1) LIKE '[0-9]', MID(MyDataCol,4,1), '') &
IIF(MID(MyDataCol,5,1) LIKE '[0-9]', MID(MyDataCol,5,1), '') &
IIF(MID(MyDataCol,6,1) LIKE '[0-9]', MID(MyDataCol,6,1), '') &
IIF(MID(MyDataCol,7,1) LIKE '[0-9]', MID(MyDataCol,7,1), '') &
IIF(MID(MyDataCol,8,1) LIKE '[0-9]', MID(MyDataCol,8,1), '') &
IIF(MID(MyDataCol,9,1) LIKE '[0-9]', MID(MyDataCol,9,1), '') &
IIF(MID(MyDataCol,10,1) LIKE '[0-9]', MID(MyDataCol,10,1), '') &
IIF(MID(MyDataCol,11,1) LIKE '[0-9]', MID(MyDataCol,11,1), '') &
IIF(MID(MyDataCol,12,1) LIKE '[0-9]', MID(MyDataCol,12,1), '') &
IIF(MID(MyDataCol,13,1) LIKE '[0-9]', MID(MyDataCol,13,1), '') &
IIF(MID(MyDataCol,14,1) LIKE '[0-9]', MID(MyDataCol,14,1), '') &
IIF(MID(MyDataCol,15,1) LIKE '[0-9]', MID(MyDataCol,15,1), '') &
IIF(MID(MyDataCol,16,1) LIKE '[0-9]', MID(MyDataCol,16,1), '')
FROM MyTable;
Jamie.
--