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

Query questions (ponctuation and format.)

Status
Not open for further replies.

bigdan

Technical User
Nov 13, 2000
41
CA
Hi,

I have a working access DB and asp script on a server and have 2 questions.

First:
When I do a search in the DB with a query from a user input text, How I can ignore pontuation
(french ponctuation ex: é, à , etc)?

Second:
When the DB return the result, How I can keep the same format as the format in the DB?
Example Line feed, multiple line feed, enter and more.

Thanks

Dan
 
I haven't had to deal with the punctuation thing but you can preserve your line feeds by using the replace function:
myVar=replace(rs(&quot;YourTextColumn&quot;),vbcrlf,&quot;<BR>&quot;)
response.write(myVar)
 
1/ Use replace for each character you need to replace (they're not so many unless you have to deal with other languages)
2/ Use the html <pre></pre> tag.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top