Re: VBA ADO Command Date Parameter Not Working

From: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
To: Josh T <mortonjt(at)rochester(dot)rr(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: VBA ADO Command Date Parameter Not Working
Date: 2009-11-23 17:36:26
Message-ID: 396486430911230936h410908depf3934386aac9efb7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

On Mon, Nov 23, 2009 at 9:24 AM, Josh T <mortonjt(at)rochester(dot)rr(dot)com> wrote:

> cmd.Parameters.Append cmd.CreateParameter("@test_date", adDBDate,
> adParamInput, 4, "2009-11-23")

Does anything change is you set the byte size from 4 to something like 10 or 12?

> cmd.CommandText = "INSERT INTO test_table (test_date) VALUES (?);"

Another thought would be to rewrite the insert expression to:

INSERT INTO Test_table( test_date )
VALUES( CAST( ? AS DATE ));

Although it probably wont help much.

--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Josh Tanski 2009-11-23 17:54:38 Re: VBA ADO Command Date Parameter Not Working
Previous Message Josh T 2009-11-23 17:24:30 Re: VBA ADO Command Date Parameter Not Working