Solved

Visual Basic 2005

Posted on 2008-10-28
4
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 143

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 143

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 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