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

hyphen in text file problem

Status
Not open for further replies.

scribbler

MIS
Feb 4, 2002
206
GB
Hi guys

In importing my ascii file some odd lines contain a hyphen in the text e.g. colour's

can you tell me how best to ignore theses as they generate errors as below. I have tracked this down to a line containing the '

[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression ''colour's ')'.

 
Can you remove the ' first before importing the data..
and then to put in the data use the replace function

Replace(strName, "'", "''")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top