Board index » delphi » Calling tQuery.Edit after tQuery.Insert
R. Rogers
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Calling tQuery.Edit after tQuery.Insert
I am working with Delphi 3.0 and MSSQL 6.5.
I have created a table as so: Create Table InsertUpdateTest wwQuery1.Sql is 'Select * from InsertUpdateTest' and the RequestLive I have the following code: Randomize ; The dilemma: If I don't set a value for Col3 on the insert, I get exception 'Couldnt perform the edit because another user changed the record.' when I I am using SQL Trace and I get the following: (After Post) (After Edit) I have tried changing the UpdateMode from upWhereAll (the default) to I don't know what else I can do, other than comment out the line in Any assistance is greatly appreciated! Many, many thanks! Respond via email or this newsgroup. |