Click here to Skip to main content
15,888,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use Three datetimepicker tool with optional. It means either use or not at user mind.At the time of data retrieve from database to show error "DBNULL not convert to string" . I could use vb.net with ms access
Posted
Comments
Prerak Patel 13-Oct-11 6:16am    
Share some code.
RaviRanjanKr 13-Oct-11 6:55am    
Please be more specific while asking question.we need more Information.

1 solution

Have you set "Allow nulls" in the database field description?

BTW: Don't ever store dates as strings: use the DateTime datatype instead. That way you can do comparisons and / or math on them, and you do not have to worry about the various date formats used worldwide as the browser or OS will handle the conversion.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900