PC Review


Reply
Thread Tools Rate Thread

DateTime no Time

 
 
=?Utf-8?B?Y2pl?=
Guest
Posts: n/a
 
      20th Jan 2005
I am using the OleDbAdapter to access a simple ACCESS database. One of the
fields is a date/time field. When I insert a record from my NET app, the time
portion of the field is missing in the database. I tried changing the data
adapter to use a DBTimeStamp instead of a DBDate in the insert command and I
get excpetions thrown on the insert "type mismatch in criteria expression"

ideas??? I'm going nuts
thanks

 
Reply With Quote
 
 
 
 
Paul Clement
Guest
Posts: n/a
 
      20th Jan 2005
On Thu, 20 Jan 2005 11:27:03 -0800, cje <(E-Mail Removed)> wrote:

¤ I am using the OleDbAdapter to access a simple ACCESS database. One of the
¤ fields is a date/time field. When I insert a record from my NET app, the time
¤ portion of the field is missing in the database. I tried changing the data
¤ adapter to use a DBTimeStamp instead of a DBDate in the insert command and I
¤ get excpetions thrown on the insert "type mismatch in criteria expression"

Use Date instead of DBDate for a Microsoft Access database.


Paul ~~~ (E-Mail Removed)
Microsoft MVP (Visual Basic)
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DateTime.Now returns incorrect time after time zone change RFlaugher Microsoft Dot NET Compact Framework 8 12th Apr 2010 05:14 PM
Pick time out of datetime David C Microsoft ASP .NET 1 17th Aug 2009 05:03 PM
How to display time from a datetime Herve Bocuse Microsoft Dot NET Framework 3 2nd Nov 2005 05:33 PM
converting sql datetime to just time in c# M.Smith Microsoft C# .NET 3 8th Apr 2005 06:43 PM
DateTime Class shows wrong time when Time Zone is changed Dave Hall Microsoft Dot NET Compact Framework 6 14th Jul 2004 06:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:56 AM.