Good day..
I'm having problem on how to store or create a table on my database using vb.net i'm having hard time to create a table on my existing dbase
here my code;
coould you tell me what's wrong!!!
Dim ntable As OleDb.OleDbDataAdapter
Dim mtable As New DataTable
con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Documents and Settings\jesspr\Desktop\mydbase\sample.accdb"
ntable = New OleDb.OleDbDataAdapter("CREATE TABLE emp_info(" & "emp_id INTEGER NOT NULL," & "lname VARCHAR(40)," & "School_name VARCHAR(40), level varchar(40))", con)
con.Open()
ntable.Update(mtable)
MsgBox("dbase connected")
'ntable.close()
con.Dispose()
end sub
when i view my access dbase i cant see the table that was created on my code. how can i view that table?