Solved

Vb.net Updating records

Posted on 2014-09-11
1
150 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

18 Experts available now in Live!

Get 1:1 Help Now