Hi all,
Am knew to all the aspx stuff. Currently am creating an intranet and am tryin to search for hospno and then fill the firstname and surname into webpage form fields.
Am not entirely sure how to go bout this....
i've started off.....
Sub GetHospitalNoButtonClick(Source as Object, E as EventArgs)
Dim sql As String
sql = "SELECT * FROM PMI_PATIENTS WHERE [TRUST_NUM] = '" & HospitalNo & "'"
dim conn as New OleDbConnection(application("dblocation")) 'create a new connection to database
dim cmd as New OleDbCommand(sql,conn) ' create a new command to send to database
end sub
my question is am i on the right track? and how do i just get the firstname and surname from the database and poppulate it on the webpage?
an example would be really helpful
many thankx
Am knew to all the aspx stuff. Currently am creating an intranet and am tryin to search for hospno and then fill the firstname and surname into webpage form fields.
Am not entirely sure how to go bout this....
i've started off.....
Sub GetHospitalNoButtonClick(Source as Object, E as EventArgs)
Dim sql As String
sql = "SELECT * FROM PMI_PATIENTS WHERE [TRUST_NUM] = '" & HospitalNo & "'"
dim conn as New OleDbConnection(application("dblocation")) 'create a new connection to database
dim cmd as New OleDbCommand(sql,conn) ' create a new command to send to database
end sub
my question is am i on the right track? and how do i just get the firstname and surname from the database and poppulate it on the webpage?
an example would be really helpful
many thankx