Help! Got a very strange problem.
I have form with a Optimistic Table Buffered table 'Purch' in the data environment.
I am the sole user of this app - it's running against a test database.
I add a record to the table using the form, and run tableupdate(.T.,.T.,'purch') in a transaction to save the buffered changes to the DB.
I then try to edit the record using the form, and when I try to update a form control which has its controlsource set to a field in Purch, I get the 'record is in use by another user' error message.
If I suspend and go into the debugger, Getfldstate(-1,'purch') shows all fields having a status of 1 (unchanged).
Txnlevel() returns 0 (i.e. the transaction is definately completed)
If I browse the Purch table in the current datasession and edit a field then something changes so the code can resume, but if I try instead to programmatically make the same change using the command window ("REPLACE field1 WITH 99 IN purch") the error stays the same.
Does anyone have any idea what's going on here please?
I have form with a Optimistic Table Buffered table 'Purch' in the data environment.
I am the sole user of this app - it's running against a test database.
I add a record to the table using the form, and run tableupdate(.T.,.T.,'purch') in a transaction to save the buffered changes to the DB.
I then try to edit the record using the form, and when I try to update a form control which has its controlsource set to a field in Purch, I get the 'record is in use by another user' error message.
If I suspend and go into the debugger, Getfldstate(-1,'purch') shows all fields having a status of 1 (unchanged).
Txnlevel() returns 0 (i.e. the transaction is definately completed)
If I browse the Purch table in the current datasession and edit a field then something changes so the code can resume, but if I try instead to programmatically make the same change using the command window ("REPLACE field1 WITH 99 IN purch") the error stays the same.
Does anyone have any idea what's going on here please?