Jun 17, 2004 #1 RSX02 Programmer May 15, 2003 467 CA Hi I have a dataset and I would like to select the record where a particular field has the max value in the dataset. Thanks in advance
Hi I have a dataset and I would like to select the record where a particular field has the max value in the dataset. Thanks in advance
Jun 17, 2004 1 #2 RiverGuy Programmer Jul 18, 2002 5,011 US Sort the DataTable, then pick the first record. Upvote 0 Downvote
Jun 21, 2004 #3 lode Programmer Nov 8, 2001 208 BE That's one option but i think the best way is to make a dataAdapter using the following sql-command : querystr = "SELECT MAX(your field) FROM TABLE" Upvote 0 Downvote
That's one option but i think the best way is to make a dataAdapter using the following sql-command : querystr = "SELECT MAX(your field) FROM TABLE"