I am trying to create an access connection with the code below.
however, for OleDbConnection, OleDbDataAdapter, oledbcommand i keep getting "type ..(one of the three above).. is not defined".
my form is currently empty with nothing on it, i dont think this can be the cause.
my code can be seen below
Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & servermappath("C:\Documents and Settings\Owner\My Documents\Visual Studio Projects\Calculator\master_db.mdb"))
Dim sql As String = "Select * from order_details"
Dim dta As OleDbDataAdapter
dta = New OleDbDataAdapter
Dim cmd As New OleDbCommand
cmd = New OleDbCommand(sql, con)
dta.SelectCommand = cmd
Dim dst As New DataSet
Try
dta.Fill(dst, "order_details")
Catch ex As Exception
MsgBox(ex, ToString)
End Try
however, for OleDbConnection, OleDbDataAdapter, oledbcommand i keep getting "type ..(one of the three above).. is not defined".
my form is currently empty with nothing on it, i dont think this can be the cause.
my code can be seen below
Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & servermappath("C:\Documents and Settings\Owner\My Documents\Visual Studio Projects\Calculator\master_db.mdb"))
Dim sql As String = "Select * from order_details"
Dim dta As OleDbDataAdapter
dta = New OleDbDataAdapter
Dim cmd As New OleDbCommand
cmd = New OleDbCommand(sql, con)
dta.SelectCommand = cmd
Dim dst As New DataSet
Try
dta.Fill(dst, "order_details")
Catch ex As Exception
MsgBox(ex, ToString)
End Try