I'm about ready to drop VS and go back to VBA I'm so frustrated!
Is there a way to get Visual Studio to return Null values from database tables?? 99.999% of the time I have a table of user data, there's always fields that have the option of leaving them blank. But, in VS, it always throws an error while trying to retrieve null values from a database or dataset.
Example:
<Code>
MsgBox("Birthday: " & myDataset.myTable.Rows(1).CustomerBirthday)
</Code>
This would throw an exception if the CustomerBirthday column were left blank. Obviously, I don't want a fake 'default' date in here, I want a null value!
Thanks!
Update: I found this - describes my issue perfectly - he's calling it a bug in VS, is he off his base?
http://www.mikewilson.cc/2008/03/18/allow-null-values-to-be-returned-from-strongly-typed-datasets/
Is there a way to get Visual Studio to return Null values from database tables?? 99.999% of the time I have a table of user data, there's always fields that have the option of leaving them blank. But, in VS, it always throws an error while trying to retrieve null values from a database or dataset.
Example:
<Code>
MsgBox("Birthday: " & myDataset.myTable.Rows(1).CustomerBirthday)
</Code>
This would throw an exception if the CustomerBirthday column were left blank. Obviously, I don't want a fake 'default' date in here, I want a null value!
Thanks!
Update: I found this - describes my issue perfectly - he's calling it a bug in VS, is he off his base?
http://www.mikewilson.cc/2008/03/18/allow-null-values-to-be-returned-from-strongly-typed-datasets/
Last edited: