473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Problem with Data Access

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
Nov 20 '05 #1
11 1236
"Newbie!" <s_************@yahoo.co.uk> schrieb
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"?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Cor
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
Nov 20 '05 #3
* "Newbie!" <s_************@yahoo.co.uk> scripsit:
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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Me(Me.tablePasswordList.UserNameColumn)

Did you write this line? Or was it generated... I would take that first Me
out...

"Newbie!" <s_************@yahoo.co.uk> wrote in message
news:u9********************@karoo.co.uk...
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

Nov 20 '05 #5
Did you get my previous post about the Me(ME) thing?
"Armin Zingler" <az*******@freenet.de> wrote in message
news:Oa**************@TK2MSFTNGP10.phx.gbl...
"Newbie!" <s_************@yahoo.co.uk> schrieb
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"?
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
"CJ Taylor" <no****@blowgoats.com> schrieb
Did you get my previous post about the Me(ME) thing?


Yes. Why?

(get or get?)
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7
because I didn't see my post.. because my news server sucks.

just a little honesty =)(

"Armin Zingler" <az*******@freenet.de> wrote in message
news:uv**************@tk2msftngp13.phx.gbl...
"CJ Taylor" <no****@blowgoats.com> schrieb
Did you get my previous post about the Me(ME) thing?


Yes. Why?

(get or get?)
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #8
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

"CJ Taylor" <no****@blowgoats.com> wrote in message
news:vt************@corp.supernews.com...
Me(Me.tablePasswordList.UserNameColumn)

Did you write this line? Or was it generated... I would take that first Me out...

"Newbie!" <s_************@yahoo.co.uk> wrote in message
news:u9********************@karoo.co.uk...
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


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.550 / Virus Database: 342 - Release Date: 09/12/2003
Nov 20 '05 #9
This can be caused by using field names that are reserved words.

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
Nov 21 '05 #10
Pete,

Can you explain this a little bit more?

"Pete Skaarup"
This can be caused by using field names that are reserved words.

Nov 21 '05 #11
"Pete Skaarup" <ms******@rcn-dot-com.no-spam.invalid> schrieb:
This can be caused by using field names that are reserved words.


?!?

'String' doesn't have a 'Convert' method/....

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Wayne Wengert | last post by:
I am using VS.NET 2003, VB.NET, ADO.NET and an Access 2000 database. I want to display a list of all tables in an Access database. I want to put that list of table names in a listbox so the user...
3
by: Dave | last post by:
Hey, I'm running a localhost web server...W2K with IIS 5.0, and I'm trying to use ASP/ADO to access my Access database. When I first load the page, everything works, but if i hit refresh (F5 or...
4
by: Mal | last post by:
I have an ACC 2000 database that has a strange behaviour I have a small table, with just a few fields... My report has very simple grouping and sorting, no code bar a NODATA event. I have a...
4
by: Dave | last post by:
Hey guys, I have an ODBC problem that has me stumped. I wrote a VBA script to run in Microsoft Excel that pulls data out of an application using that application's ODBC driver and puts it into...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
0
by: Rajesh Kumar | last post by:
Hi Gregory Thanks for your answer. I did not see any attached file so I copied your text into a text file and named it compiler.bat Checked the wrapped lines and runned the file. It said Dataset,...
0
by: Rajesh Madhra | last post by:
Hi Gregory Thanks for your answer. I did not see any attached file so I copied your text into a text file and named it compiler.bat Checked the wrapped lines and runned the file. It said Dataset,...
5
by: junglist | last post by:
Hi guys, I've been trying to implement an editable datagrid and i have been succesful up to the point where i can update my datagrid row by row. However what used to happen was that once i updated...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
11
by: nartla | last post by:
Hello, I work on an app developped with Access/VBA and communicating with a SQL Server database via ODBC. My problem is that I have to manage a big string which can be 0 to 1024 characters...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.