Re:VB.NET & Access Database
"Newbie!" <
s_j_green_2000@yahoo.co.uk>schrieb
Quote
Hi Group, hope you all had a great Xmas/Holiday?
Just a quick one, i know i`ve asked this before but totally forgot
the answer.
When i run my prog i get a error saying 'Conver' is not a member of
'String' on the following code:
Public Sub SetCreatedOnNull()
Me(Me.tablePasswordList.CreatedOnColumn) =
System.Convert.DBNull
End Sub
This code was generatedm, When I generated my Dataset.
That's really a bad thing! (not you but the problem *g*)
You've got a table with a field named "System". The field is added as a
property to your typed Dataset. Consequently, the code
"System.Convert.DBnull" is not resolved to System.Convert.DBNull within
mscorlib.dll. Instead the name "System" is resolved to the property in the
class. As the property is of type String, System.Convert.DBNull is actually
resolved to System.String.Convert.DBnull - which does not exist.
I don't think there is a way around... but let's wait for more answers.
BTW, I've always wanted a "root" character to be able to write something
like
Me(Me.tablePasswordList.CreatedOnColumn) = \System.Convert.DBNull
(note the backslash)
--
Armin
www.plig.net/nnq/nquote.html">
www.plig.net/nnq/nquote.html
www.netmeister.org/news/learn2quote.html">
www.netmeister.org/news/learn2quote.html
-