>Borislav
>Thank you for responding. The problem still persists. The error: "Cursor canNot be updated because it contains an unsaved record" occurs just after a scatter and fails on the gather. The alias() = poitems. I overkilled the update and append blank with the following code:
>
> WAIT WINDOW 'clsFrmAddOnly.acti: in gAddLike: ALIAS() = ' + ALIAS()
>* TABLEUPDATE(1,.t.,'poItems')
> TABLEUPDATE(1,.t.,alias())
> SCATTER MEMVAR memo
> APPEND BLANK
> TABLEUPDATE(1,.t.,alias())
> GATHER MEMVAR memo
>
>
>The failure now occurs on the append blank.
>Frustrated in Bath township
>Vince
Vince
Just an idea but you've probably got htis covered:
Are you sure Alias() is returnuing the correct alias, i.e. that of the currently selected table. IOW you need to be USEing the object table. Now I don't know what table you're scattering from. Indeed, it looks like you're trying to append to the same table - maybe that's what you want.
Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.