One suggestion is to use a self-join on the target form to determine the results sort order differently than how the original form has it specified.
So REMTAB points to FORM A whose results list is ordered by Date, and Request ID. Create a SELF-JOIN of FORM A with a results list set ordered by Status/Priority and Last Modified Date and point REMTAB to that? This would get you part-way to the solution. Regards Dave Morgan Tiberone Technologies Ltd -----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Rashmi Amruth Sent: 22 March 2008 11:45 To: arslist@ARSLIST.ORG Subject: Moving records to the top based on a condition ------=_Part_4106_1533299.1206186276245 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, A remedy table field (say, Remtab) contains some records which has columns (Last Modified Date, Priority, State). I need to move certain records to the top based on a condition. The condition is, say - State is Active and Priority is "1" and Current date and time is more than 45 minutes after "Last Modified Date". Any ideas on how this can be done? Regards, Rashmi ________________________________________________________________________ _______ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" ------=_Part_4106_1533299.1206186276245 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ** <div>Hi All,</div> <div> </div> <div>A remedy table field (say, Remtab) contains some records which has columns (Last Modified Date, Priority, State). I need to move certain records to the top based on a condition. </div> <div>The condition is, say - <span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-weight: bold">State</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-bidi-font-weight: bold"> is Active and Priority is "1" and Current date and time is more than 45 minutes after "Last Modified Date"</span>.</div> <div> </div> <div>Any ideas on how this can be done?</div> <div> </div> <div>Regards,</div> <div>Rashmi</div> <div> </div> __Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are" html___ ------=_Part_4106_1533299.1206186276245-- _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"