all groups > vb.net upgrade > december 2003 >
You're in the

vb.net upgrade

group:

Setting Date to Null


Setting Date to Null mikl
12/8/2003 10:45:38 AM
vb.net upgrade: Hi
I'm upgrading using an Access Database through ODBC, and
in VB I used to be able to set a Date field to Null (or
vbNull) if I wanted to clear it in the database.

I've tried every possible combination, including using
DBNull in .NET to no avail.

Does someone have a sample of how to do this?

Thanks,

Re: Setting Date to Null hirf-spam-me-here NO[at]SPAM gmx.at
12/8/2003 10:11:41 PM
* "mikl" <anonymous@discussions.microsoft.com> scripsit:
[quoted text, click to view]

You will have to write a wrapper class around 'DateTime' which allows to
store NULL values. Have a look at <http://www.deja.com>, you will find
a lot of information on this topic.

--
Herfried K. Wagner [MVP]
AddThis Social Bookmark Button