Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting an Access Date Type field to Null in VB

Status
Not open for further replies.

Timinator

Programmer
Apr 13, 2001
33
US
I'm trying to clear out a date type field in access through a Visual Basic interface. Its not really working. I've tried setting it to NULL, 0, "" and it won't take any of them. 0 is the closest to working, but it sets the date to 12/31/99, which is no good.

Any Ideas?

Thanks.

Tim
 
Change the date field in the Access database so that it can accept NULL values. Then you can do it. -Chris Didion
Matrix Automation, MCP
 
I don't see a option to accept Nulls for Date Type fields, maybe i am mistaken though.

Tim
 
Sorry, in Access you set it by setting the requires property of the field.

Set the required property of your date field to No.

That should do it. -Chris Didion
Matrix Automation, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top