Home All Groups Group Topic Archive Search About

bindaing a DATE field

Author
8 Jan 2006 4:36 AM
toufik
Hi,
VB.net project with ms-access database, I've a DATETIME field that I like to
bind in my Form, it ontains the date only :
- If I use a TextBox the problem is that There is an hour (12:00) added to
the textBox even if I fill the date only.
- If I use a DateTimePicker the problem is when the field is NULL It is
filled with the today's date.

Any idea please to bind the datetime field.
thanks

Author
8 Jan 2006 8:44 AM
Cor Ligthert [MVP]
Toufik,

Have a look at the binding events. Here is a sample on our website

http://www.vb-tips.com/default.aspx?ID=c4832a2a-2b95-4ded-93d9-4deb7fa4a0b8

As addition don't forget to use with the datetimepicker the Value property

I hope this helps,

Cor