473,385 Members | 2,028 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.

need to delete dataset

7
I'm a vb newbie and I successfully added a dataset to my program, then I closed it down. Next day, I didn't realize I had to actually go in and start it, so when nothing was working, I entered a new connection. Then realized my error. Now I have 2 datasets in the program, both connections are pointing to the same thing. How can I get rid of one of them.

Also, while I have your attention. I added a column to the one dataset called fullName. I want to concatenate first name and last name together to fill this field. The book says go to the Expression property and add lastName+', '+firstName. That sounds easy enough, except the fields in this database seem to be Last Name and First Name. I've never worked with any database that allows spaces between words on a column. Is that allowed in VB? How can I fix that? I keep getting the error: Syntax error: Missing operand after 'name' operator.

Any help would be greatly appreciated.
Mar 22 '07 #1
1 987
Killer42
8,435 Expert 8TB
I'm a vb newbie and I successfully added a dataset to my program, then I closed it down. Next day, I didn't realize I had to actually go in and start it, so when nothing was working, I entered a new connection. Then realized my error. Now I have 2 datasets in the program, both connections are pointing to the same thing. How can I get rid of one of them.

Also, while I have your attention. I added a column to the one dataset called fullName. I want to concatenate first name and last name together to fill this field. The book says go to the Expression property and add lastName+', '+firstName. That sounds easy enough, except the fields in this database seem to be Last Name and First Name. I've never worked with any database that allows spaces between words on a column. Is that allowed in VB? How can I fix that? I keep getting the error: Syntax error: Missing operand after 'name' operator.
I can't help with the first problem, but the second one sounds as though (if it's an MS Access database) you probably need to put square brackets around the field names. For example...
[Last Name]+', '+[First Name]
Mar 23 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Grant | last post by:
Hello, How come when I add a new row to my dataset table it shows up as changed (agencyData.Haschanges() = True) but when I delete a row the dataset thinks here are no...
2
by: NoSpam | last post by:
Hi, I am working with C# and ASP.NET with code behind and a SQL Server. I'm making an e-shop. When clients see what they have in their basket, I added a function DELETE to delete a line. It took...
5
by: tony010409020622 | last post by:
I just spent 4 months taking a dotnet class where i learned very little. One of the things I did not learn is this: What are the dotnet equivilents of commands such as: Adodc1.Recordset.AddNew...
5
by: manmit.walia | last post by:
Hello All, I am stuck on a conversion problem. I am trying to convert my application which is written in VB.NET to C# because the project I am working on currently is being written in C#. I tried...
5
by: rn5a | last post by:
The .NET 2.0 documentation states the following: When using a DataSet or DataTable in conjunction with a DataAdapter & a relational data source, use the Delete method of the DataRow to remove...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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: 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
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...

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.