473,729 Members | 2,309 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 1265
"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
4416
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
4042
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
5403
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
3573
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
3938
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
1648
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
3366
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
2034
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
9694
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
9135
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
8917
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
9426
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
9281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9142
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
8148
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
6722
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
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.