Hi,
I have a gridview displaying data from an access database.
Everything works fine and I can edit data and the update works great.
The problem is that there are two fields in the gridview which I want the user to see but not to be able to edit.
So I changed the Update Query to only update the remaining fields.
Now the update does not work. There is no error on the debug page, it just doesn't update the changes.
This was the UpdateQuery when it was working...
UPDATE tBookedDates SET StartDate = ?, EndDate = ?, Booked = ?, PartialBooked = ?, Price = ? WHERE (BookedDateID = ?)
This is what I changed it to (doesn't work)
UPDATE tBookedDates SET Booked = ?, PartialBooked = ?, Price = ? WHERE (BookedDateID = ?)
I have only removed the StartDate and EndDate parts.
Any help would be appriciated.
I have a gridview displaying data from an access database.
Everything works fine and I can edit data and the update works great.
The problem is that there are two fields in the gridview which I want the user to see but not to be able to edit.
So I changed the Update Query to only update the remaining fields.
Now the update does not work. There is no error on the debug page, it just doesn't update the changes.
This was the UpdateQuery when it was working...
UPDATE tBookedDates SET StartDate = ?, EndDate = ?, Booked = ?, PartialBooked = ?, Price = ? WHERE (BookedDateID = ?)
This is what I changed it to (doesn't work)
UPDATE tBookedDates SET Booked = ?, PartialBooked = ?, Price = ? WHERE (BookedDateID = ?)
I have only removed the StartDate and EndDate parts.
Any help would be appriciated.