Ask a Question related to Macromedia ColdFusion, Design and Development.
-
thnguyen #1
displaying the last 5 records
Hi,
I want to display the last 5 or 10 records, for example a table with 50 records but i just want to get and display the last 5 records of the 50 records. any suggestions?
thnguyen Guest
-
displaying dup records
I need to create a list of records that are within the same file that are duplicate records. I wanted to display any records that match another... -
Displaying Records
Hello All, Finally was able to connect my access database to DW, now I'm trying to display the record set in DW. After adding the table?s column... -
Displaying Records Horizontally
I understand how to use the 'repeat region' server behavior to display records horizontally as opposed to vertically, however i'm not sure how to... -
help with displaying records - please
My SQL Statement under my recordset is: SELECT mmatter, (feest+costst)-(arwofft+oafeest+paymentt) as balance FROM dbo.ken_juantable WHERE... -
Displaying of new records
How do you display a NEW record upon entry into a form? It always shows me the LAST record. I want the default to be a NEW record. Thanks! -
simontux #2
Re: displaying the last 5 records
One way that I can think of is to get the total recordcount
<cfset totcount = #query.RecordCount#>
<cfset startrow = #totcount# - 10>
<cfoutput query="query" startrow="#startrow#">
There is probably another way of doing it, but this is the first thing that
came to mind.
simontux Guest
-
Bill Marcus #3
Re: displaying the last 5 records
<cfquery datasource="MYDSN" name="MYQUERY" maxrows="5">
Make sure you specifiy the DESC tag in your SQL to list the most recent.
Bill
"simontux" <simon@tumeki.co.nz> wrote in message
news:d5t24i$l82$1@forums.macromedia.com...> One way that I can think of is to get the total recordcount
>
> <cfset totcount = #query.RecordCount#>
>
> <cfset startrow = #totcount# - 10>
>
> <cfoutput query="query" startrow="#startrow#">
>
> There is probably another way of doing it, but this is the first thing
> that
> came to mind.
>
Bill Marcus Guest



Reply With Quote

