oledb and dates in vb.net 2003
- From: "Tom" <tom@xxxxxxxxxxxxxxxx>
- Date: Tue, 1 May 2007 11:50:02 -0700
Hi,
I have an Access 2000 database that I'm loggin data to and need to store the
date/time of the logged data in a field. I can log the individual data
elements just fine but the date is knocking me around some. It keeps giving
me the standard 'Data type mismatch in criteria expression' error. I'm
attempting to insert via
timNow = DateTime.Now
strSQL = "INSERT INTO LOG1 (LogTime) VALUES ('#" & CType(timNow, String) &
"#')"
Help please. I've already wasted 4 hours on this
Thanks
Tom
.
- Follow-Ups:
- Re: oledb and dates in vb.net 2003
- From: Mary Chipman [MSFT]
- Re: oledb and dates in vb.net 2003
- From: msgroup
- Re: oledb and dates in vb.net 2003
- Prev by Date: Re: asychronous OLEDB
- Next by Date: Re: asychronous OLEDB
- Previous by thread: Re: asychronous OLEDB
- Next by thread: Re: oledb and dates in vb.net 2003
- Index(es):
Relevant Pages
|
Loading