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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return last record only 1

Status
Not open for further replies.

varnix

Programmer
Jan 7, 2002
94
US
I have a query that I run on the history of a particular item.

The query of course returns all of the records in the history for that item.

In this one area I only need the last record.

Other than using a cfloop to get the data, is there an easier method of doing this, say via the query?
 
Code:
<cfoutput>#QueryName.Fieldname[queryname.recordcount]#</cfoutput>

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
webmigit - that's something that they never covered in any of my CF classes!

That worked perfectly!

Thanks again!

 
Glad.

ALFII.com
---------------------
If this post answered or helped to answer your question, please reply with such so that forum members with a similar question will know to use this advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top