Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

DateTimePicker and DataBinding, 2005EE, VB

$
0
0

Hi all,

I have a database with a date field. Automatically 'Details' insert it to a form like a DateTimePicker_Ctrl, bound to the field. The property Value is set to the today's date from VS2005EE.

But unfortunely if I save a new record with the Navigator_Save_Button the DateTimePicker deliveres Null, so an error appears (Null not allowed, I need the date). Only if I select a date - not the shown today's date - the date will correct transferred to the database.

The user should not need to pick up a date every time he enters a new record, cause in 99% it is the today date.

What have I to do? All other fields of the table will be saved correctly without any does.

Thanks from a beginner

Thomas


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>