Solved

Visual Basic 2005

Posted on 2008-10-28
4
162 Views
Last Modified: 2013-11-26
Making the painful transition from VB6.....

In VB6, returning a field value could be done like so:

SomeString$=datTable.recordset.fields("FieldInTable")

Damned if I can figure out the equivalent in 2005.
0
Comment
Question by:brammo
  • 2
  • 2
4 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22827292
how do you "query", right now?
with a datareader, or do you fill into a dataset/datatable?
0
 

Author Comment

by:brammo
ID: 22827306
TableAdapter
0
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 50 total points
ID: 22827369
you mean:
YourTableAdapter.Fill(yourdataset)

yourdataset.Tables(0).Rows(0)("FieldInTable")   should return the first row's value...

If I remember correctly...

Open in new window

0
 

Author Closing Comment

by:brammo
ID: 31510984
Thanks, it's a painful process......
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now