Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 11:03 AM
Zlatko Matiæ
Guest
 
Posts: n/a
Default double quotes inside a string

I have a problem when working with PostrgeSQL as back-end. Namely,
PostgreSQL syntax uses doble quotes for table names and field names. For
example:
select = from public."Customers"
Therefore, when I write it as a string of a pass-through query or Command
Text of ADO Command object it looks like:
"select * from public."Customers""
anbd VBA thinks that the first quote after public. is the end of statement.

How to solve it ?

Thanks.



  #2  
Old November 13th, 2005, 11:04 AM
Matthias Klaey
Guest
 
Posts: n/a
Default Re: double quotes inside a string

"Zlatko Matiæ" <zlatko.matic1@sb.t-com.hr> wrote:
[color=blue]
>I have a problem when working with PostrgeSQL as back-end. Namely,
>PostgreSQL syntax uses doble quotes for table names and field names. For
>example:
>select = from public."Customers"
>Therefore, when I write it as a string of a pass-through query or Command
>Text of ADO Command object it looks like:
>"select * from public."Customers""
>anbd VBA thinks that the first quote after public. is the end of statement.
>
>How to solve it ?
>
>Thanks.
>
>[/color]

Use two double quotes inside the string:

"select * from public.""Customers"""

HTH
Matthias Kläy
--
www.kcc.ch

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles