> I may be having the same problem.

The other "solution" that I use when it's not in Identity order is to pass a
complete list of the IDs through in a form field (yes, I know this gets big
when it hits the thousands) and then pull out the block I'm looking at, the
ID list must be in the correct order, obviously...

<cfscript>
IDarray=ListToArray(form.IDlist);
NewIDlist="";
for (i=1; i lte 20; i=i+1)
{       if((i + form.StartPosn) gt ArrayLen(IDarray))
                break;
        NewIDlist=ListAppend(NewIDlist,IDarray[i + form.StartPosn]);
}
</cfscript>
<cfquery>
        select *
        from table
        where ID in (#NewIDlist#)
        order by OrderField
</cfquery>

This code and method is very old (about 9 months now) and probably needs
re-writing...
I'll do it when I get the time :-/

Philip Arnold
Director
Certified ColdFusion Developer
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to