Double quotes

R

Rob Berkers

Hello everyone,

I have a question about the use of a double qoute (").

For an application I need to construct the next XML code:

<item id="311101">

The number 31101 needs to be placed between double qoutes, but in
Access I cannot use the double qoute directly within strings.

I can remember from another language I used in the past that there was
a "enforcing character" that you could use when you needed to have a
reserved character (as the double quote) within a string.

Does Access has also such a enforcing character? Or is there another
way I can use double quotes within a string?

Thanks in advance,
Rob.
 
R

RoyVidar

Rob Berkers said:
Hello everyone,

I have a question about the use of a double qoute (").

For an application I need to construct the next XML code:

<item id="311101">

The number 31101 needs to be placed between double qoutes, but in
Access I cannot use the double qoute directly within strings.

I can remember from another language I used in the past that there
was a "enforcing character" that you could use when you needed to
have a reserved character (as the double quote) within a string.

Does Access has also such a enforcing character? Or is there another
way I can use double quotes within a string?

Thanks in advance,
Rob.

You can "double" them up, i e

? "<item id=""311101"">"

or concatenate using the chr$() function

? "<item id=" & chr$(34) & "311101" & chr$(34) & ">"
 

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

Top