Hi Fabio,
Well, I got that far,
but I don't want to do a tableupdate since the record can be undoed by the user in the GUI.
I don't wan't to disable the index order, since all added records should insert a day order.
I can't change the buffering since I want the users to undo the record in the GUI.
Interestingly you can get arrounbd it in two ways:
1. Use ascending index orders
2. Use following code in the click event
THISFORM.LockScreen = .T.
nHeight = THISFORM.Grid1.height
THISFORM.Grid1.height = THISFORM.Grid1.RowHeight + THISFORM.Grid1.Headerheight
INSERT INTO x (Day) VALUES (DATE()+RECCOUNT("X"))
THISFORM.Refresh
THISFORM.Grid1.height = nHeight
THISFORM.LockScreen = .F.
But those are not very attractive solutions either.
Walter,