DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Error with datepicker control

  1. #1
    Join Date
    Aug 2004
    Posts
    43,023

    Error with datepicker control

    [Originally posted by Sammy]

    hi,
    I have a form which has controls (like textbox,checkbox,DatePicker) connected to an ADODB.Recordset using the controls Datasource property. The problem is that if the field(from a table) connected to the datepicker control is empty (i.e. Null) i get an error message
    "Unable to Bind to Field or DataMember".
    Is there a way around this?

  2. #2
    Join Date
    Aug 2004
    Posts
    43,023

    Re: Error with datepicker control

    [Originally posted by Shaked Sharon]

    well
    as you can imagine, datepicker was not designed to show nulls.
    so maybe it will be a good idea to add a default value, so if there is no data entered when saving it will save today's date for instance.
    or, if you have a lot of data, you can put a check when you read the data- if there isnt any data, put this date. HOWEVER you cant check this while working through the Datasource property. do it manually. i think the added flexibility is worth the 5 minutes it will take you. + i think its faster.
    if you need something else, e-mail me and i will be happy to help
    shaked@barak-online.net

    bye,
    Shaked Sharon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center