?
Solved

Vb.net Updating records

Posted on 2014-09-11
1
Medium Priority
?
158 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
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…
Suggested Courses

743 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