I have looked in the tutorial and loaded the examples etc. Also copied the code from the SQL Manual and changed to suit and failed.
this is a simplified UPDATE format as the actual line is so long.
I have a key which may be the problem? I have no problem reading writing to the Database but I cannot get the update to work
Thankyou in advance
Table Creation:
SQL1.ExecNonQuery ("CREATE TABLE Booking(Booth TEXT NOT NULL, BookingsDate TEXT NOT NULL, TimeOfDay TEXT Not Null, Visitor TEXT,Occupation TEXT, Company TEXT, Contact TEXT,Email TEXT, Inmate TEXT, Cell TEXT, Nomis TEXT, TypeOfBooking TEXT, TimeIn TEXT, TimeOut TEXT, S40E TEXT, Bookedby TEXT, DateBooked TEXT, CONSTRAINT BkKey UNIQUE (Booth, BookingsDate, TimeOfDay))")
SQL1.ExecNonQuery2:
SQL1.ExecNonQuery2("Update Booking Set BookedBy = ?, Email = ? WHERE Booth = ?, BookingDate = ?, TimeOfDay = ?" Array As String(dtaBookedby, dtaemail, dtaBooth, dtaBookingDate, dtaTimeOfDay))
this is a simplified UPDATE format as the actual line is so long.
I have a key which may be the problem? I have no problem reading writing to the Database but I cannot get the update to work
Thankyou in advance