Justok,
What are the data types involved here. If your BookID is character you can simply create and index on BookID + DTOS(BorrowDate) and use that index as th child order for the grid. If Book_id is numeric you can createw and inde xon STR(book_id,11) + DTOS(BorrowDate) and then set that index as childorder and make the RelationalExpr STR(Book)ID,11).