PC Review


Reply
Thread Tools Rate Thread

Date Time Picker help

 
 
=?Utf-8?B?ZHVzdGlubDE1?=
Guest
Posts: n/a
 
      6th Dec 2006
I am using Access 2003 and on a form I have the Microsoft Date and Time
Picker Control 6.0 (SP4). But it when I enter the data from the form to the
table the time is with it, and that is causing it to error out. I tried to
make the DTPicker a custom Data and Time MM/dd/yyyy and just left out the
time part but it still adds in the time. Is there a custom format that will
not add in the time or another tools that is similar to this without the
time. I like this one because of the format.
 
Reply With Quote
 
 
 
 
Van T. Dinh
Guest
Posts: n/a
 
      6th Dec 2006
If I want the date only without the time, I tend to use the Calendar Control
rather than the DTP ...

If you want to use the DTP, I think you can set its default time value to
zero ... In the design view of your Form, right-click on the DTP Control and
select DTP Object / Properties ... Some where on this dialog, you should see
the Time value. Change this value to 00:00:00 (a date-only value is actually
stored as a datetime value with zero time component). You can also use code
to set the "starting" value of the DTP to date-only value.

Of course, you need to check your code and make sure you don't assign a
non-zero time value to the DTP or your Field ...

--
HTH
Van T. Dinh
MVP (Access)



"dustinl15" <(E-Mail Removed)> wrote in message
news:FF4519F1-7D10-4C51-96A6-(E-Mail Removed)...
>I am using Access 2003 and on a form I have the Microsoft Date and Time
> Picker Control 6.0 (SP4). But it when I enter the data from the form to
> the
> table the time is with it, and that is causing it to error out. I tried
> to
> make the DTPicker a custom Data and Time MM/dd/yyyy and just left out
> the
> time part but it still adds in the time. Is there a custom format that
> will
> not add in the time or another tools that is similar to this without the
> time. I like this one because of the format.



 
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
Setting current date on date/time picker control =?Utf-8?B?RG91Z00=?= Microsoft Access VBA Modules 1 19th Jul 2005 07:07 PM
I am trying to use the Microsoft Date and Time Picker control and I am getting the following error "an error occured in a call to the windows date and time picker control" in access 2000 Ralph Malph Microsoft Access Forms 0 25th Oct 2004 07:00 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook Form Programming 1 23rd Jan 2004 03:31 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook VBA Programming 1 22nd Jan 2004 02:48 PM
MS Date and Time Picker Control defaults to today's date =?Utf-8?B?UmF2aQ==?= Microsoft Outlook Program Addins 0 14th Jan 2004 06:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:46 AM.