Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-11-2019, 05:18 PM
kbboykin kbboykin is offline
Senior Member
Join Date: May 2005
Posts: 371
Default Index by Date Descending

How do I sort my DBGrid by descending date? I want the latest date to be at the top of the grid. I have tried this code to execute on title click. The table is in a master-detail relationship. If I click the column it does as expected, but if I move to another record in master table I get this error: 'Argument are of the wrong type, are out of acceptable range, or in conflict with one another'

procedure TfrmMain.dbFuelLogTitleClick(Column: TColumn);
  AdatMod.fueling.Sort  := ('fYear DESC');
Using Delphi 2010 Professional as a Novice Programmer - self taught
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT. The time now is 04:39 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.