Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 5588B632CBD for ; Mon, 23 Nov 2009 12:56:04 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 32859-06 for ; Mon, 23 Nov 2009 16:55:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mail.postgresql.org (Postfix) with ESMTP id 6C5E3632C9B for ; Mon, 23 Nov 2009 12:55:53 -0400 (AST) Received: by yxe11 with SMTP id 11so4562439yxe.15 for ; Mon, 23 Nov 2009 08:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=j0zR9bHC7BCJyP0vE0AzjXPGUPn9089YRz3TYW9lv+U=; b=QQdxFAitWidC1lWCyxccsmXv9Mh4dOadFFpbVhmY98NaMJBTXmiRjh7JhkWtYR5DV2 Z13wnxTdWf1hvsHcJbuP0rv3Azdf5/d4eKl6eUt/OiJTjeR7V1aj0coNKFUnJe4Px/dr pCNyOOAMz0PWsf2LDfKJAiBtn9ky/Je8eivTY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=EYkmhSk2g9FqylqiZw90TX+NHlyBf7rGmQbwjFsSVT1kmQXnkYqr8BX6Sa1YFHPGdR g4FKi1esZyQ6DneTbEoiv7kgl1SOegd3EZHCZ+JIL7pXWZjgKDEodCP9ZZiZ4KLrrrhh 0djGFbCvd6PBt0DjeaVA27B75hanZu0V/UZXg= MIME-Version: 1.0 Received: by 10.101.166.2 with SMTP id t2mr3841155ano.9.1258995349413; Mon, 23 Nov 2009 08:55:49 -0800 (PST) In-Reply-To: <4B0AAE9D.9030201@rochester.rr.com> References: <4B0AAE9D.9030201@rochester.rr.com> Date: Mon, 23 Nov 2009 08:55:49 -0800 Message-ID: <396486430911230855n6f283472t90c04e02615c075f@mail.gmail.com> Subject: Re: VBA ADO Command Date Parameter Not Working From: Richard Broersma To: Josh T Cc: pgsql-odbc@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.506 tagged_above=-10 required=5 tests=AWL=0.093, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/61 X-Sequence-Number: 10110 on Mon, Nov 23, 2009 at 7:47 AM, Josh T wrote: > =A0What is the correct way to pass a date into a parameter so it gets > into the database correctly? http://www.postgresql.org/docs/8.4/interactive/datetime-appendix.html This is how Postgresql accepts dates by default. There is a way to change = this: http://www.postgresql.org/docs/8.4/interactive/datatype-datetime.html#DATAT= YPE-DATETIME-INPUT http://www.postgresql.org/docs/8.4/interactive/runtime-config-client.html#G= UC-DATESTYLE > [5.750]conn=3D03044168, query=3D'INSERT INTO test_table (test_date) VALUE= S > ('1900-05-07'::date);' It looks like the ODBC driver is make the conversion here. Rather than passing the date in with the #...#. Could you pass it in as a string? --=20 Regards, Richard Broersma Jr. Visit the Los Angeles PostgreSQL Users Group (LAPUG) http://pugs.postgresql.org/lapug