PC Review


Reply
Thread Tools Rate Thread

DateTimePicker Problems

 
 
Michael Beatty
Guest
Posts: n/a
 
      20th Jul 2004
I want to store only the time in an access database using VB.Net. I'm using
a date time picker on my VB form that has a custom format set to "hh:mm".
When I send the data to the DB the date, not the time is stored. What am I
doing wrong?


 
Reply With Quote
 
 
 
 
=?Utf-8?B?UmF5bW9uZA==?=
Guest
Posts: n/a
 
      20th Jul 2004
Hi Michael,

Try set the parameter type to DBTime instead of the default DBDate.
In yr code, set the parameter.value = dateTimePicker.value.TimeOfDay

You can restrict the data format by setting the format property in yr Access table column.

Hope this help

Ray

"Michael Beatty" wrote:

> I want to store only the time in an access database using VB.Net. I'm using
> a date time picker on my VB form that has a custom format set to "hh:mm".
> When I send the data to the DB the date, not the time is stored. What am I
> doing wrong?
>
>
>

 
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
Problems with AM/PM in DateTimePicker Scott Gifford Microsoft Dot NET Compact Framework 0 23rd Jul 2008 03:56 AM
DateTimePicker problems on smartphones Mark Microsoft Dot NET Compact Framework 0 2nd Nov 2006 05:02 PM
DateTimePicker Binding problems Chris W Microsoft Dot NET Compact Framework 1 3rd May 2005 06:09 PM
DateTimePicker Problems =?Utf-8?B?TSBLZWV0b24=?= Microsoft Dot NET 1 13th Jan 2005 07:41 PM
Re: Datetimepicker & sql John Microsoft ADO .NET 0 4th Sep 2003 09:55 PM


Features
 

Advertising
 

Newsgroups
 


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