473,385 Members | 1,400 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,385 software developers and data experts.

Table Name is Typed DataSet

I'm working through one of the example data sets in the Visual Basic
Resource Kit, and am having a problem with use of a table name that contains
spaces. The section of code in the example that I'm having trouble with is
as follows:

TextBox1.Text = tds.Alphabetical_list_of_products(5).ProductName
TextBox2.Text = tds.Alphabetical_list_of_products(5).CategoryName

where tds is a Typed Data Set. I noticed that the actual view in the
Northwind database does not contain the "_" characters between words in the
name. When I enter the code (above) from the example, I get an error saying
"
Alphabetical_list_of_products is not a member of 'tds.dsProducts'. I'm
guessing that the problem has to do with the embedded "_" characters which
are not in the actual view name that the Typed DataSet is based on.
However, it doesn't work if I remove the "_" characters because it doesn't
know how to handle the spaces. Can someone fill me in on how to deal with
this issue? Thanks,

Bob
Nov 20 '05 #1
3 1170
"Robert A. Boudra" <rb*****@comcast.net> schrieb

TextBox1.Text = tds.Alphabetical_list_of_products(5).ProductName
TextBox2.Text = tds.Alphabetical_list_of_products(5).CategoryName


Which example are you referring to? I tried to find it but I didn't.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
Nov 20 '05 #2
For some reason, once I saved the project, it started working. Sorry that
you had to look into this. One question though. It appears that if spaces
are embedded in a View name, they can be repaced by the "_" character to
reference the view in code. Is this correct?

The example is in the Step-by-Step Walkthroughs in the Data Access section.
It is called "Create and Use a Typed DataSet by Using Visual Basic.NET"

Thanks for your help.

Bob

"Armin Zingler" <az*******@freenet.de> wrote in message
news:Oo**************@TK2MSFTNGP12.phx.gbl...
"Robert A. Boudra" <rb*****@comcast.net> schrieb

TextBox1.Text = tds.Alphabetical_list_of_products(5).ProductName
TextBox2.Text = tds.Alphabetical_list_of_products(5).CategoryName


Which example are you referring to? I tried to find it but I didn't.
--
Armin

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

Nov 20 '05 #3
"Robert A. Boudra" <rb*****@comcast.net> schrieb
For some reason, once I saved the project, it started working. Sorry
that you had to look into this. One question though. It appears
that if spaces are embedded in a View name, they can be repaced by
the "_" character to reference the view in code. Is this
correct?
Blanks are replaced by "_" when the typed dataset is generated because names
mustn't contain blanks.
The example is in the Step-by-Step Walkthroughs in the Data Access
section. It is called "Create and Use a Typed DataSet by Using Visual
Basic.NET"


Aaah ok. I had the explorer search all *.vb files, not *.htm. :-( :-)
--
Armin

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

Nov 20 '05 #4

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

Similar topics

4
by: Alfetta159 | last post by:
I've been setting up a schema with the XML Designer in VS .NET 2003. The designer lets me set up a lot of things including a complex type that contains an unnamed complex type called modified. ...
1
by: Nedu N | last post by:
Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data into typed dataset in order to ease the further...
2
by: Nedu N | last post by:
Hi Techies, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data into typed dataset in order to ease the...
0
by: Bennett Haselton | last post by:
It seems whenever I add a new field to a database table that's queried by DataAdapters in my project, I get run-time errors because I don't go back and re-generate all the DataAdapters to read the...
2
by: Tony Girgenti | last post by:
Hello I developed and tested a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1. It uses a web form. I used the XML Designer to create an XML .XSD...
2
by: Christopher | last post by:
Hi, I am writing a database application and now I need to display some data and I have a question about it. The data is stored in a typed dataset. In my MainForm I have a datagridview. the...
4
by: =?Utf-8?B?Sm9iIExvdA==?= | last post by:
how can persist schema for a sql server table into an xml file from .net application? thanks
3
by: =?Utf-8?B?UmljaCBIdXRjaGlucw==?= | last post by:
I'm not really sure how to ask this question because I'm still getting my feet wet with data access and VB.NET, but here goes: To start off with, I'm using VB 2005 Express to connect to an Access...
12
by: Randy | last post by:
Hi, Trying to pass along a table row delete to the datasource, but I'm crashing. Here is the code: Private Sub btnDeleteIngr_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.