From FredP@abag.ca.gov Sun Mar 23 19:51:32 2003 X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0344A474E53 for ; Sun, 23 Mar 2003 14:51:32 -0500 (EST) Received: from iserver.abag.ca.gov (iserver.abag.ca.gov [198.31.87.3]) by postgresql.org (Postfix) with ESMTP id 787FF474E44 for ; Sun, 23 Mar 2003 14:51:31 -0500 (EST) Received: from groupwise.abag.ca.gov (groupwise.abag.ca.gov [198.31.87.26]) by iserver.abag.ca.gov (8.12.4/8.12.4) with SMTP id h2NJpVo3024734 for ; Sun, 23 Mar 2003 11:51:31 -0800 (PST) Received: from D01-Message_Server by groupwise.abag.ca.gov with Novell_GroupWise; Sun, 23 Mar 2003 11:51:31 -0800 Message-Id: X-Mailer: Novell GroupWise Internet Agent 5.5.6.1 Date: Sun, 23 Mar 2003 11:51:23 -0800 From: "Fred Parkinson" To: Subject: psql dates in Access Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_6B342653.D6B7D5FF" X-Spam-Status: No, hits=1.2 required=5.0 tests=HTML_20_30,HTML_MESSAGE version=2.50-cvs X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 2.50-cvs (1.172-2003-02-14-exp) X-Archive-Number: 200303/57 X-Sequence-Number: 2776 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=_6B342653.D6B7D5FF Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable in postgres 7.2 Using the postgres timestamp with timezone, I can't seem to extract records= using Access and requesting a range of dates, unless the date is hard-code= d into the Access query. I want to reference a range of dates that a user has entered on a form. I have referenced to user-entered dates with and without the date bracketed= by "#". In the date range I submit to the query I have referenced the full time sta= mp string where I construct the start date as "xx/xx/xx 12:00:00 AM" and th= e end date as "xx/xx/xx 12:59:59 PM" (not the same xx/xx/xx obvioulsy) I have referenced the dates with and without the double quotes. I have referenced only the left 10 characters of the dates, i.e., the day p= art. When I manually enter the desired dates into the query before saving, then = running, it works. When I try any of the above ways to reference a date from a form, the query= results are always empty. Any ideas? Thanks Fred Parkinson --=_6B342653.D6B7D5FF Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Description: HTML
in postgres 7.2
Using the postgres timestamp with timezone, I can't see= m to=20 extract records using Access and requesting a range of dates, unless the da= te is=20 hard-coded into the Access query.
 
I want to reference a range of dates that a user has en= tered=20 on a form.
I have referenced to user-entered dates with and withou= t the=20 date bracketed by "#".
In the date range I submit to the query I have referenc= ed the=20 full time stamp string where I construct the start date as "xx/xx/xx 12:00:= 00=20 AM" and the end date as "xx/xx/xx 12:59:59 PM" (not the same xx/xx/xx=20 obvioulsy)
I have referenced the dates with and without the double= =20 quotes.
I have referenced only the left 10 characters of the da= tes,=20 i.e., the day part.
 
When I manually enter the desired dates into the query = before=20 saving, then running, it works.
When I try any of the above ways to reference a date fr= om a=20 form, the query results are always empty.
 
Any ideas?
Thanks
Fred Parkinson
--=_6B342653.D6B7D5FF-- From jkherr@centurytel.net Sun Mar 23 20:43:54 2003 X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C0A01475A4B for ; Sun, 23 Mar 2003 15:43:54 -0500 (EST) Received: from mail3.centurytel.net (mail3.centurytel.net [209.142.136.99]) by postgresql.org (Postfix) with ESMTP id 5C0C6475A45 for ; Sun, 23 Mar 2003 15:43:54 -0500 (EST) Received: from localhost.localdomain (pppoe0910.grp.centurytel.net [66.112.48.22]) by mail3.centurytel.net (8.12.8/8.12.8) with ESMTP id h2NKhsXC012495 for ; Sun, 23 Mar 2003 14:43:54 -0600 (CST) Content-Type: text/plain; charset="iso-8859-1" From: "John K. Herreshoff" To: pgsql-odbc@postgresql.org Subject: Re: psql dates in Access Date: Sun, 23 Mar 2003 15:44:17 -0500 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200303231544.17218.jkherr@centurytel.net> X-Spam-Status: No, hits=-31.9 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL autolearn=ham version=2.50-cvs X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50-cvs (1.172-2003-02-14-exp) X-Archive-Number: 200303/58 X-Sequence-Number: 2777 Try without time zone; that should work.=20=20 John. On Sunday 23 March 2003 02:51 pm, Fred Parkinson wrote: > in postgres 7.2 > Using the postgres timestamp with timezone, I can't seem to extract recor= ds > using Access and requesting a range of dates, unless the date is hard-cod= ed > into the Access query. > > I want to reference a range of dates that a user has entered on a form. > I have referenced to user-entered dates with and without the date bracket= ed > by "#". In the date range I submit to the query I have referenced the full > time stamp string where I construct the start date as "xx/xx/xx 12:00:00 > AM" and the end date as "xx/xx/xx 12:59:59 PM" (not the same xx/xx/xx > obvioulsy) I have referenced the dates with and without the double quotes. > I have referenced only the left 10 characters of the dates, i.e., the day > part. > > When I manually enter the desired dates into the query before saving, then > running, it works. When I try any of the above ways to reference a date > from a form, the query results are always empty. > > Any ideas? > Thanks > Fred Parkinson From FredP@abag.ca.gov Sun Mar 23 20:50:28 2003 X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3BBB1474E53 for ; Sun, 23 Mar 2003 15:50:28 -0500 (EST) Received: from iserver.abag.ca.gov (iserver.abag.ca.gov [198.31.87.3]) by postgresql.org (Postfix) with ESMTP id 7EEE7474E44 for ; Sun, 23 Mar 2003 15:50:27 -0500 (EST) Received: from groupwise.abag.ca.gov (groupwise.abag.ca.gov [198.31.87.26]) by iserver.abag.ca.gov (8.12.4/8.12.4) with SMTP id h2NKoSo3024994 for ; Sun, 23 Mar 2003 12:50:28 -0800 (PST) Received: from D01-Message_Server by groupwise.abag.ca.gov with Novell_GroupWise; Sun, 23 Mar 2003 12:50:28 -0800 Message-Id: X-Mailer: Novell GroupWise Internet Agent 5.5.6.1 Date: Sun, 23 Mar 2003 12:50:16 -0800 From: "Fred Parkinson" To: , Subject: Re: psql dates in Access Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_326D7F04.2C4D2F1A" X-Spam-Status: No, hits=-8.6 required=5.0 tests=EMAIL_ATTRIBUTION,HTML_10_20,HTML_MESSAGE,QUOTED_EMAIL_TEXT autolearn=ham version=2.50-cvs X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50-cvs (1.172-2003-02-14-exp) X-Archive-Number: 200303/59 X-Sequence-Number: 2778 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=_326D7F04.2C4D2F1A Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable I will look into that, but I seem to recall that when we were setting up th= e databases in postgres a couple of months ago, that if we left the time zo= ne off then access didn't recognize the field as a date/time field Thanks for responding=20 Fred >>> "John K. Herreshoff" 03/23/03 12:44PM >>> Try without time zone; that should work.=20=20 John. On Sunday 23 March 2003 02:51 pm, Fred Parkinson wrote: > in postgres 7.2 > Using the postgres timestamp with timezone, I can't seem to extract recor= ds > using Access and requesting a range of dates, unless the date is hard-cod= ed > into the Access query. > > I want to reference a range of dates that a user has entered on a form. > I have referenced to user-entered dates with and without the date bracket= ed > by "#". In the date range I submit to the query I have referenced the full > time stamp string where I construct the start date as "xx/xx/xx 12:00:00 > AM" and the end date as "xx/xx/xx 12:59:59 PM" (not the same xx/xx/xx > obvioulsy) I have referenced the dates with and without the double quotes. > I have referenced only the left 10 characters of the dates, i.e., the day > part. > > When I manually enter the desired dates into the query before saving, then > running, it works. When I try any of the above ways to reference a date > from a form, the query results are always empty. > > Any ideas? > Thanks > Fred Parkinson ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html --=_326D7F04.2C4D2F1A Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Description: HTML
I will look into that, but I seem to recall that when w= e were=20 setting up the databases in postgres a couple of months ago, that if we lef= t the=20 time zone off then access didn't recognize the field as a date/time=20 field
 
Thanks for responding
Fred


>>> "John K. Herreshoff" <jkherr@centurytel.net>= ;=20 03/23/03 12:44PM >>>
Try without time zone; that should work.&n= bsp;=20

John.

On Sunday 23 March 2003 02:51 pm, Fred Parkinson=20 wrote:
> in postgres 7.2
> Using the postgres timestamp with=20 timezone, I can't seem to extract records
> using Access and requesti= ng a=20 range of dates, unless the date is hard-coded
> into the Access=20 query.
>
> I want to reference a range of dates that a user has= =20 entered on a form.
> I have referenced to user-entered dates with and= =20 without the date bracketed
> by "#". In the date range I submit to th= e=20 query I have referenced the full
> time stamp string where I construc= t the=20 start date as "xx/xx/xx 12:00:00
> AM" and the end date as "xx/xx/xx= =20 12:59:59 PM" (not the same xx/xx/xx
> obvioulsy) I have referenced th= e=20 dates with and without the double quotes.
> I have referenced only th= e=20 left 10 characters of the dates, i.e., the day
> part.
>
>= ;=20 When I manually enter the desired dates into the query before saving,=20 then
> running, it works. When I try any of the above ways to referen= ce a=20 date
> from a form, the query results are always empty.
>
&g= t;=20 Any ideas?
> Thanks
> Fred=20 Parkinson


---------------------------(end of=20 broadcast)---------------------------
TIP 5: Have you checked our extens= ive=20 FAQ?

http://www.postgresql= .org/docs/faqs/FAQ.html
--=_326D7F04.2C4D2F1A-- From tgl@sss.pgh.pa.us Sun Mar 23 21:02:59 2003 X-Original-To: pgsql-odbc@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6EF93474E53 for ; Sun, 23 Mar 2003 16:02:59 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id DEA34474E44 for ; Sun, 23 Mar 2003 16:02:58 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.8/8.12.8) with ESMTP id h2NL1Zub002039; Sun, 23 Mar 2003 16:01:35 -0500 (EST) To: "Fred Parkinson" Cc: jkherr@centurytel.net, pgsql-odbc@postgresql.org Subject: Re: psql dates in Access In-reply-to: References: Comments: In-reply-to "Fred Parkinson" message dated "Sun, 23 Mar 2003 12:50:16 -0800" Date: Sun, 23 Mar 2003 16:01:35 -0500 Message-ID: <2038.1048453295@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-24.8 required=5.0 tests=EMAIL_ATTRIBUTION,HTML_00_10,HTML_MESSAGE,IN_REP_TO, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50-cvs X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50-cvs (1.172-2003-02-14-exp) X-Archive-Number: 200303/60 X-Sequence-Number: 2779 "Fred Parkinson" writes: > When I manually enter the desired dates into the query before saving,=20 > then
> running, it works. When I try any of the above ways to referen= > ce a=20 > date
> from a form, the query results are always empty.
>
&g= > t;=20 [please turn off MIME encoding in list mail...] It seems likely to me that the query arriving at the backend is not what you think it is. I'd suggest turning on query logging (see postgresql.conf) so that you can see what's really being issued. IIRC, there are also logging provisions in the ODBC driver, which would give you an additional view of what's happening. regards, tom lane