VB 2010 with MS Access 2010 Error Conversion from type 'DBNull' to type 'String' is not valid.
VB .NET Error Conversion from type 'DBNull' to type 'String' is not valid.
VB .NET Conversion from type 'DBNull' to type 'String' is not valid. |
Error :
Conversion from type 'DBNull' to type 'String' is not valid.
Cause :
Trying to Fetch Data From empty database table field, where database table field doesn't have any data 'null'.
Solution :
According to StackOverFlow, you may also try this solution instead, which also work fine but you need to determine at which end your problem exists "The application" or "The Database table", because you can workaround your this problem "DBNull" from Database table or from Visual Basic .Net.
♥ Here are some online Visual Basic lessons and courses :
- Visual Basic .Net - Snippets collection
- Visual Basic .Net - How to check for the internet connection
- Visual Basic .Net - POP3 and Receiving E-mails
- Visual Basic .Net - Generate Random Combinations
- Visual Basic .Net - Play sounds on Button Click or Mouse Hover
- Visual Basic .Net - Progressbar control
- Visual Basic .Net - The application failed to initialize
- Visual Basic .Net - Working with Database full example
- Visual Basic .Net - There is already an open DataReader associated
- Visual Basic .Net - SyBase Advantage Database [Add, Edit, Search, Delete and DataGridView]
- Visual Basic .Net - Math Functions
- Visual Basic .Net - Communicating with clients [Requirements Docs, Use-Case]
- Visual Basic .Net - SAP Crystal Reports Download and Installation guide
- Visual Basic .Net - Receive Emails using POP3 mail Server
- Visual Basic .Net - Command Prompt
- Visual Basic .Net - Free POS System Project Source Code