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