casualrich
Member
- Joined
- Dec 17, 2008
- Messages
- 12
- Programming Experience
- 1-3
Hi Im new hear I have been using VB for about 3 years now, got this assignment at uni and I ave done the first bit!!!
but its the second but which Im unsure about Im trying to link a database to my project and get information to show on my form using a complex query
here is my code where am I going wrong
PLEASE PLEASE HELP ME!!
i now get this when i run the programme!
but its the second but which Im unsure about Im trying to link a database to my project and get information to show on my form using a complex query
here is my code where am I going wrong
PLEASE PLEASE HELP ME!!
VB.NET:
Private Sub butquery_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butquery.Click
Dim connStr As Integer
Dim dt As New DataTable
Dim commStr As String = "Provider = Microsoft.Jet.OLEDB.4.0;" & _
"Data Source= EngineerJobs.MDB"
Dim sqlStr As String = "Select * FROM Engineer No"
Dim DataAdapter As New OleDb.OleDbDataAdapter(sqlStr, commStr)
DataAdapter.Fill(dt)
DataAdapter.Dispose()
i now get this when i run the programme!
PLEASE HELP ME!!Could not find file 'F:\Richard's Uni Sept 08-9\Software Development\SU computer repairs Richard Hemmings Assignment\RHemmings Assignment\RHemmings Assignment\RHemmings Assignment\bin\Debug\EngineerJobs.MDB'.