473,698 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.tablePass wordList.UserNa meColumn) = System.Convert. DBNull
End Sub
Anybody got any Ideass?

Thanks for any Help in Advance

Ta
Si
Nov 20 '05 #1
11 1261
"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.tablePass wordList.UserNa meColumn) =
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.tablePass wordList.UserNa meColumn) = system.DBNull.v alue

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.tablePass wordList.UserNa meColumn) = 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.tablePass wordList.UserNa meColumn)

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******** ************@ka roo.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.tablePass wordList.UserNa meColumn) = 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*******@free net.de> wrote in message
news:Oa******** ******@TK2MSFTN GP10.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.tablePass wordList.UserNa meColumn) =
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****@blowgoa ts.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*******@free net.de> wrote in message
news:uv******** ******@tk2msftn gp13.phx.gbl...
"CJ Taylor" <no****@blowgoa ts.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.tablePass wordList.UserNa meColumn) = 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****@blowgoa ts.com> wrote in message
news:vt******** ****@corp.super news.com...
Me(Me.tablePass wordList.UserNa meColumn)

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******** ************@ka roo.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.tablePass wordList.UserNa meColumn) = 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

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

Similar topics

11
4415
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 can select the table they want to use. How can I do this? -- ------------------------------------ Wayne Wengert wayne@wengert.org
3
4039
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 even Ctrl-F5), I get "page cannot be displayed" with the problem line of code being the database Open command (the starred line in the snippet below). If I press Refresh repeatedly, that doesn't help. After a minute or two, refreshing the page...
4
5401
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 memo field When CAN GROW is set to NO everything works just fine. When CAN GROW is set to YES - watch out.... One record causes BIG
4
3570
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 Excel. I am trying to translate the same program over to Microsoft Access and I ran into a problem. Access locks up if the data I am querying for is not present in the database. To retrieve data from the database of the application, my Excel...
0
3935
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. It is almost like it is trying to implement it's own COM interfaces... below is the header, and a link to the dll+code: Zip file with header, example, and DLL:...
0
1644
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, Datareader and some other things are not defined. So I entered the : Imports Microsoft.ApplicationBlocks.Data Imports system Imports system.data Imports System.Data.SqlClient
0
3363
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, Datareader and some other things are not defined. So I entered the : Imports Microsoft.ApplicationBlocks.Data Imports system Imports system.data Imports System.Data.SqlClient
5
2029
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 one row, all of them were updated so i immediatelly figured out that i have to include the id of every entry in the update statement. This is where the problem is raised. My database is an Access database. The table i am updating contains a Date...
9
9692
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 master-child link to the first subform. subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK Child Field: TrainingModuleTopicSK
11
9129
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 long. The string is correctly stored in the Access and SQL Server tables (Memo field for Access, and varchar(1024) for SQL Server).
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8861
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7728
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.