G
Guest
I have two Date/Time fields in my Access 2003 database. The VB.NET app I'm
developing (and making some real progress with) uses TextBoxes to input these
as part of a record in a DataSet. Problem: Access always stores years as 4
digits, and it automatically tags a time onto the field, so when the user
enters:
30/11/04
I end up with:
30/11/2004 00:00:00
when I view the record after it's created; the DataSet is populated using
the database schema. Since the TextBox is set to display only 8 characters,
this is annoying at best. The only way I can think of around this is to store
the date as a string and write a validation handler for each TextBox that
inputs dates.
But is there a better way? Can I somehow force Access to store the short
date and nothing else?
developing (and making some real progress with) uses TextBoxes to input these
as part of a record in a DataSet. Problem: Access always stores years as 4
digits, and it automatically tags a time onto the field, so when the user
enters:
30/11/04
I end up with:
30/11/2004 00:00:00
when I view the record after it's created; the DataSet is populated using
the database schema. Since the TextBox is set to display only 8 characters,
this is annoying at best. The only way I can think of around this is to store
the date as a string and write a validation handler for each TextBox that
inputs dates.
But is there a better way? Can I somehow force Access to store the short
date and nothing else?