Would I need to use SQL queries against a MS Access database in VB.NET. Right now I'm using
Which connects fine, and also I was able to successfully run a SELECT query on it, however I need to run INSERT statements, and mine just isn't working. The code is
Just so you know, the first column in the table is an autonumber column, and you can see in the statement that I left it out. All of these fields are text fields, as well. Every time I execute it with
it just gives me a general error on the main form, not describing anything. Any ideas?
Code:
Driver={Microsoft Access Driver (*.mdb)};DBQ=..\cfss.mdb
Which connects fine, and also I was able to successfully run a SELECT query on it, however I need to run INSERT statements, and mine just isn't working. The code is
Code:
dbCommand.CommandText = "INSERT INTO personalinfo VALUES('" & fname & "','" & lname & "','" & street & "','" & city & "','" & state & "','" & zip & "','" & phone & "','" & email & "')"
Code:
dbCommand.ExecuteNonQuery()