Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 176
  • Last Modified:

Visual Basic 2005

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
brammo
Asked:
brammo
  • 2
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
how do you "query", right now?
with a datareader, or do you fill into a dataset/datatable?
0
 
brammoAuthor Commented:
TableAdapter
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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
 
brammoAuthor Commented:
Thanks, it's a painful process......
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now