You don't get error 1545 during the TableUpdate() but on a
subsequent Requery() , right?
IOW, this example might through an error because it does not
care if the update succeeds or not
TABLEUPDATE(0,.T., "customerView")
REQUERY("customerView")
This would be better
IF TABLEUPDATE(0,.T., "customerView") && = .T.
REQUERY("customerView")
ELSE
&& have a look why the update failed:
AERROR(aErrors)
DO CASE
&& etc.
ENDIF
hth
-Stefan
Post by Sorin SanduTable buffer for alias "name" contains uncommitted changes (Error 1545)
How can I resolve this ???
Post by Stefan WuebbeYou may want to check the return value of TableUpdate() anyway.
When its .F. you can use AERROR() to get the reason.
AERROR(aErrors)
DO CASE
CASE aErrors[1,1] = 1585 && Record changed by another user
MessageBox(... && etc.
hth
-Stefan
Post by Sorin SanduWhen I issue =TABLEUPDATE(0,.T.,"tablename") my changes are not commited.
I have Optimistic Buffering at form level against a remote view.
What things do I have to check ?
When I call =TABLEUPDATE(1,.T.,"amortizate") it's working.