Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select the max value in a dataset 1

Status
Not open for further replies.

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
 
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"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top