Results 1 to 3 of 3

Thread: Very simple question about dates...

  1. #1

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    All of you probably know that the maskedit control ain't the best for handling dates. That only leaves me one choice: the vb6 datepicker.

    Are everyone using the datepicker or am I missing something? The datepicker's value CAN'T be set to NULL (unless you want the control to have a checkbox in it and the NULL value is simply grayed).

    What's the solution to this? Let's imagine you have a form with a customer's informations, including his DOB. Using a datepicker would NEED a default DOB. You will all agree that this MUST be avoided.

    Thank for your time...
    Chris

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    If the datepicker's not bound, it's not that big of deal. You set the date value for a DOB to some early value (0, for instance) and then check before updating the database if the value is 0, changing it to null.

  3. #3

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    The problems is, to set the datepicker to null, you need that checkbox in the control. Which is ugly and unlike all my other controls.

    Also, when using that checkbox, and setting the value to NULL, the date doesn't disappear - it only goes gray. I want it to disappear.

    These 2 facts makes me believe I need another control. But I don't know which, since the maskedit will be much worse.
    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width