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

Print " to a file from code.

Status
Not open for further replies.

VLG711

Technical User
May 30, 2001
95
US
Hi,
In access I use Print #1, "xxxxx" command to write an HTML file. I cannot figure out how to print a " character. I need this for some java script that is in the page. I've already tried it with both a ' and a %22. Does anyone have any suggestions.

thanks in advance,

VLG711
 
And what about Chr(34) ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
you can use either a double quote "" in your string, this prints a quotations mark or use chr(34).

e.g.

Print #1, "xxx "" xx" - will output: xxx " xx

OR

Print #1, "xxx " & chr(34) & " xx" - will output: xxx " xx also

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top