Quote:
Originally posted by JoePritchard
I'm assuming that there is a table called MORTGAGE in the Mortgage.mdb database, and that it has a field called mortgagecode?
Joe
|
ah-ha!thanks 4 that. so iv fixed that and now its come up with a second problem!!!(the part in "quote", is the part it highlights):
CN.Provider = "MICROSOFT.JET.OLEDB.4.0" 'ACCESS CONNECTION
CN.Open("C:\Documents and Settings\Kathleen Hughes.KATHLEEN\My Documents\michelle\yr 2004-5\vb.net\ASSIGNMENT\assignmeet2\mortgage.MDB")
RS = New ADODB.Recordset()
RS.Open("select * from client order by Name", CN, 1, 2)
Quote:
|
txtFirstName.Text = RS.Fields("Name").Value
|
txtLastName.Text = RS.Fields("Last Name").Value
txtDOB.Text = RS.Fields("DOB").Value
txtPostcode.Text = RS.Fields("Current Postcode").Value