locked
Date fields on windows forms VB2008 RRS feed

  • Question

  • Hi,

    I've got a data entry form with 3 date fields which can be null.

    When I open up the form the fields display as today's date  when the value is null.

    I want to be able to display to the user that the value is null and not some spurious or misleading value.

    Any ideas on how I can do this?

    thanks,


    Gareth
    Monday, February 23, 2009 7:37 AM

Answers

  • On commit if he hasn't changed the default value which is today's date.

    Display a message box asking for confirmation "Do you want to save the default value?".

    Thanks, A.m.a.L
    • Marked as answer by Yichun Feng Monday, March 2, 2009 1:30 AM
    Monday, February 23, 2009 7:46 AM

All replies

  • On commit if he hasn't changed the default value which is today's date.

    Display a message box asking for confirmation "Do you want to save the default value?".

    Thanks, A.m.a.L
    • Marked as answer by Yichun Feng Monday, March 2, 2009 1:30 AM
    Monday, February 23, 2009 7:46 AM
  • Hi Gareth090858,

    First you should make sure that the datetime column doesn't have default value. Then if the column is null, it will display blank.

    Best Regards

    Yichun Feng


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Friday, February 27, 2009 6:37 AM
  • Thanks guys
    Monday, March 2, 2009 7:42 AM