Advertisement

05.06.2008 at 10:43AM PDT, ID: 23380312
[x]
Attachment Details

date time picker control in visual basic 2005

Asked by systems_ax in Visual Studio, Visual Basic Programming, Microsoft Visual Basic.Net

I am developing with vb.net 2005 and here is my situation:
Every time I save a date to my access table, it does get saved great, but when I try to retrieve that date, it again populates great, BUT when I do not save a date and leave that date tipe picker field empty, NOW date is displayed. How do I change the code so that of there is not date in access, the fields is left "empty" without today's date.
Thank you

        'If Not (IsDBNull(contactreader("Date"))) Then
        '    dtpDate.Text = CType(contactreader("Date"), Date).ToShortDateString()
        '    'Else
        '    '    dtpDate.Text = Nothing
        '    'dtpDate.Text = Nothing
        'End If

I also tried:

If Not (IsDBNull(contactreader("Date"))) Then
                        Me.dtpDate.Value = contactreader("Date")
        Else
            dtpDate.Value = ""
        End If

Start Free Trial
[+][-]05.06.2008 at 10:47AM PDT, ID: 21509389

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 11:02AM PDT, ID: 21509503

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 11:37AM PDT, ID: 21509752

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 01:45PM PDT, ID: 21510893

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 02:35PM PDT, ID: 21511285

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio, Visual Basic Programming, Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: jpaulino
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.07.2008 at 03:50PM PDT, ID: 21521036

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.07.2008 at 03:55PM PDT, ID: 21521062

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.12.2008 at 07:09PM PDT, ID: 21551795

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 01:27AM PDT, ID: 21553131

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 08:53AM PDT, ID: 21556305

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 12:50PM PDT, ID: 21568034

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2008 at 02:32PM PDT, ID: 21568925

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628