Re: Convert is not a member of String by Bart
Bart
Thu Nov 24 07:59:23 CST 2005
Hi,
"No_So_Clever" <NOSPAM@NOSPAM.net> wrote in message
news:yHudnT2Y9N1fIxjeSa8jmw@karoo.co.uk...
> Hi All,
>
> I have the following Code:
>
> Public Sub SetAccessLevelNull()
> Me(Me.tableGeneralPasswords.AccessLevelColumn) = System.Convert.DBNull
> End Sub
Looks like wizard generated code for a Typed DataRow, where
SetAccessLevelNull is the right way to set the field to null.
Do you by any chance have a DataColumn name "System" ? If you do then
"System" is a property on the typed DataRow that returns a string. So
rename your "System" column or use "DBNull.Value" instead of
"System.Convert.DBNull".
HTH,
Greetings
>
> Im getting a ErroR on this Saying "Convert is Not a Member of String"
> Could somebody kindly point me in the right direct?
>
> Many Thanks
> NSC
>
>
>