From: | "Jeff Eckermann" <jeff_eckermann(at)yahoo(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: double quotes inside VBA string ? |
Date: | 2005-05-18 15:44:28 |
Message-ID: | d6fnoj$2d5c$1@news.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
""Zlatko Mati"" <zlatko(dot)matic1(at)sb(dot)t-com(dot)hr> wrote in message
news:001d01c55bab$87607cf0$99301dc3(at)zlatkovyfkpgz6(dot)(dot)(dot)
Hello.
I have a problem when working with MS Access/PostgreSQL.
Namely, as PostgreSQL syntax uses doble quotes for table names and field
names, 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""
and VBA considers that the first quote after public. is the end of
statement.
How to solve it ?
This question is OT really, but...
Make your command string something like:
"select * from public." & chr(34) & "Customers" & chr(34).
Better yet, change the table names to be all lower case. Access won't care
at all, and your life with PostgreSQL will be easier.
From | Date | Subject | |
---|---|---|---|
Next Message | Bricklen Anderson | 2005-05-18 15:46:15 | Re: Newbie question |
Previous Message | Csaba Nagy | 2005-05-18 15:43:16 | Re: Newbie question |