Solved

Vb.net Updating records

Posted on 2014-09-11
1
157 Views
Last Modified: 2014-09-15
Hi Experts

I have inherited some one's VB code and trying to learn it

He uses DataConnectors and readers he has created

My Question is I have a new Table I created and 4 TextBoxes and I want the TextBox.text for the 4 of them
to be added to the Table Fields 1 - 4
How using code like

Dim MySQL as string = "Select Field1, field2, field3, field44 from MYTable"
Dim prameters as New DataParameterConnector("@Id", Nothing)
Dim Reader1 as Data.IDataReader = Company.DataConnector.getreader(sql, nothing)

Thanks
0
Comment
Question by:Kevinfeening
[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
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 40323318
If you have an IDataReader, then you can access the fields like this:

TextBox1.Text = Reader1("Field1").ToString()

Open in new window

0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Introduction During my participation as a VBScript contributor at Experts Exchange, one of the most common questions I come across is this: "I have a script that runs against only one computer. How can I make it run against a list of computers in …
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 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