so im trying 2 add data to my table in the database, done all the connection (OLEDB one)
so this code adds to my database:
SQL = "Insert into Bookings(StaffID) values('" & stafid.Text & "')"
DC1 = New OleDbCommand(SQL, cN)
DC1.ExecuteNonQuery()
MsgBox("Record Saved, Thank you!", MsgBoxStyle.OkOnly, "")
this is one column, im trying to add more to the table StaffID
whats wrong with this SQL statement to add all the fields to the database?
SQL = "Insert into Bookings(StaffID,RoomID,Date required,Time required,Additional requirements) values('" _
& "'" & stafid.Text & "', " _
& "'" & rooid.Text & "', " _
& "'" & date1.Text & "', " _
& "'" & time1.Text & "', " _
& "'" & areq.Text & "')"