When I set a bookmark in an ADOtable I cant go back to that place later.
This is my code
procedure TForm3.DBG1CellClick(Column: TColumn); //DBG1 is a TDBGrid
BM:=DM1.TblEl.GetBookmark; //Bookmark to the record I clicked.
DecodeDate(DM1.TblEl.Fields.AsDateTime,Ar,Mon,dag); //date of first
record in table
DM1.TblEl.GotoBookMark(BM); //Back to Bookmark
DecodeDate(DM1.TblEl.Fields.AsDateTime,Ar,Mon,dag); //This reads the
last record in the table?? Why??
I guess I am doing something wrong or there is a setting I have missed.
Very thankful for help about this.