Click here to Skip to main content
15,913,941 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGet record info from a datagrid Pin
New_Coder15-Feb-06 11:52
New_Coder15-Feb-06 11:52 
AnswerRe: Get record info from a datagrid Pin
KreativeKai16-Feb-06 3:21
professionalKreativeKai16-Feb-06 3:21 
GeneralRe: Get record info from a datagrid Pin
New_Coder16-Feb-06 11:48
New_Coder16-Feb-06 11:48 
GeneralRe: Get record info from a datagrid Pin
KreativeKai17-Feb-06 2:10
professionalKreativeKai17-Feb-06 2:10 
Questionhow to use EOF or BOF in vb.net Pin
haripaddu15-Feb-06 11:21
haripaddu15-Feb-06 11:21 
AnswerRe: how to use EOF or BOF in vb.net Pin
KaptinKrunch15-Feb-06 11:29
KaptinKrunch15-Feb-06 11:29 
GeneralRe: how to use EOF or BOF in vb.net Pin
haripaddu15-Feb-06 11:38
haripaddu15-Feb-06 11:38 
GeneralRe: how to use EOF or BOF in vb.net Pin
haripaddu15-Feb-06 11:43
haripaddu15-Feb-06 11:43 
I ve a database named ATIS.mdb.In that my table is ATIS_hotel,i am having 3 textboxes and a command button...when i enter some value in the first text box and click the command button,it will be connected to the database and it should retrieve the values of the other two fields in the other two text boxes...

this is my code....

Dim con As New OleDb.OleDbConnection
con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = D:\ATIS.mdb"
con.Open()

Dim ds As New DataSet
Dim da As OleDb.OleDbDataAdapter
Dim sql As String

sql = "SELECT ATIS_hotel.area,ATIS_hotel.category FROM ATIS_hotel"
da = New OleDb.OleDbDataAdapter(sql, con)

da.Fill(ds, "hotel")

'TextBox1.Text = ds.Tables("hotel").Rows(0).Item("name")


TextBox2.Text = ds.Tables("hotel").Rows(0).Item("area")
TextBox3.Text = ds.Tables("hotel").Rows(0).Item("category")


con.Close()
so how do i retrieve it in the other two text boxes??

Paddu...

GeneralRe: how to use EOF or BOF in vb.net Pin
mayhem_rules15-Feb-06 17:21
mayhem_rules15-Feb-06 17:21 
QuestionUsing setFilePointer API Pin
IH8Microsoft15-Feb-06 10:18
IH8Microsoft15-Feb-06 10:18 
AnswerRe: Using setFilePointer API Pin
Dave Kreskowiak15-Feb-06 10:57
mveDave Kreskowiak15-Feb-06 10:57 
GeneralRe: Using setFilePointer API Pin
IH8Microsoft15-Feb-06 11:32
IH8Microsoft15-Feb-06 11:32 
GeneralRe: Using setFilePointer API Pin
Dave Kreskowiak15-Feb-06 13:03
mveDave Kreskowiak15-Feb-06 13:03 
AnswerRe: Using setFilePointer API Pin
progload15-Feb-06 11:49
progload15-Feb-06 11:49 
GeneralRe: Using setFilePointer API Pin
IH8Microsoft15-Feb-06 11:58
IH8Microsoft15-Feb-06 11:58 
GeneralRe: Using setFilePointer API Pin
IH8Microsoft15-Feb-06 12:13
IH8Microsoft15-Feb-06 12:13 
GeneralRe: Using setFilePointer API Pin
progload15-Feb-06 12:37
progload15-Feb-06 12:37 
GeneralRe: Using setFilePointer API Pin
IH8Microsoft15-Feb-06 12:51
IH8Microsoft15-Feb-06 12:51 
QuestionCombobox Items Pin
kostasdiktia215-Feb-06 10:02
kostasdiktia215-Feb-06 10:02 
AnswerRe: Combobox Items Pin
Dave Kreskowiak15-Feb-06 10:45
mveDave Kreskowiak15-Feb-06 10:45 
GeneralRe: Combobox Items Pin
kostasdiktia215-Feb-06 13:35
kostasdiktia215-Feb-06 13:35 
AnswerRe: Combobox Items Pin
Steve Pullan15-Feb-06 11:50
Steve Pullan15-Feb-06 11:50 
GeneralRe: Combobox Items Pin
Dave Kreskowiak15-Feb-06 13:01
mveDave Kreskowiak15-Feb-06 13:01 
QuestionRegistry keys Pin
kostasdiktia215-Feb-06 9:50
kostasdiktia215-Feb-06 9:50 
AnswerRe: Registry keys Pin
Dave Kreskowiak15-Feb-06 10:43
mveDave Kreskowiak15-Feb-06 10:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.