Problem with Data Access

  • Thread starter Thread starter Newbie!
  • Start date Start date
N

Newbie!

Hi,

When i try and build my project which includes a Access Database i get a
error saying:

`Convert` is not a member of `String`

on the following code:

Public Sub SetUserNameNull()
Me(Me.tablePasswordList.UserNameColumn) = System.Convert.DBNull
End Sub
Anybody got any Ideass?

Thanks for any Help in Advance

Ta
Si
 
Newbie! said:
When i try and build my project which includes a Access Database i
get a error saying:

`Convert` is not a member of `String`

on the following code:

Public Sub SetUserNameNull()
Me(Me.tablePasswordList.UserNameColumn) =
System.Convert.DBNull
End Sub
Anybody got any Ideass?

You declared a variable "System As String"?
 
Hi Newbie

I did not know what the code means, but i think you would do something as

Me(Me.tablePasswordList.UserNameColumn) = system.DBNull.value

I hope this helps?

And as advice, put "Option Strict On" in top of your program, you will see a
lot of errors in desing time.

Cor
 
* "Newbie! said:
When i try and build my project which includes a Access Database i get a
error saying:

`Convert` is not a member of `String`

on the following code:

Public Sub SetUserNameNull()
Me(Me.tablePasswordList.UserNameColumn) = System.Convert.DBNull
End Sub
Anybody got any Ideass?

Where do you use this code? What exactly do you want to do?
 
Me(Me.tablePasswordList.UserNameColumn)

Did you write this line? Or was it generated... I would take that first Me
out...
 
because I didn't see my post.. because my news server sucks.

just a little honesty =)(
 
Hi

This is the code that was generated when i built my Dataset.

My Table had about 20 Feilds in it and it create 20 instances of:

Public Sub SetUserNameNull()
Me(Me.tablePasswordList.UserNameColumn) = System.Convert.DBNull
End Sub

For each feild withing my code.

All cam up say 'Convert' is not a member of 'string'

Ta
Si
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top