Double Quotes Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I forgot - what is the trick to displaying a double quote (") in the text field? I thought it was /" but of course I was wrong. Thank you.
 
2 double quotes in a row, or Chr$(34).

To get

This is Doug's "response"

you'd use:

"This is Doug's ""response"""

or

"This is Doug's " & Chr$(34) & "response" & Chr$(34)


--
Doug Steele, Microsoft Access MVP

(No private e-mails, please)


Angela Hunt said:
I forgot - what is the trick to displaying a double quote (") in the text
field? I thought it was /" but of course I was wrong. Thank you.
 
You mean in VBA code, right?

Double the quote mark:

If you want to see : This is "test". in text box, or message box, you do

txtBox1="This is ""test""." or
MsgBox "This is ""test""."

Angela Hunt said:
I forgot - what is the trick to displaying a double quote (") in the text
field? I thought it was /" but of course I was wrong. Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top