CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Resolved: Multiple Order By items in an editable grid

Print topic Send  topic

Author Message
netsys

Posts: 39
Posted: 10/17/2011, 1:30 PM

I'm working on an editable grid, which is getting data from two tables. I would like to be able to have the data sorted by first the last name, then the first name. I can sort fine with just the last name, but when I add the first name to the order by area of the SQL, I get the following error:

ADODB.Recordset error '800a0cc1'

Item cannot be found in the collection corresponding to the requested name or ordinal.

Can someone give me more info on why I would be seeing this?

Thanks.

Beth Perkins
View profile  Send private message
netsys

Posts: 39
Posted: 10/18/2011, 9:14 AM

Found the answer here: http://forums.codecharge.com/posts.php?post_id=78927

When I added the second sort, the field names that were being sorted were changed from StudentID and RegID to Students.StudentID and registrations.RegID. I used an alias in my Control Source for each of these fields, changing them back to StudentID, and RegID, and voila, it worked. Had to make sure then that several references throughout the page were referencing StudentID and RegID rather than Students.StudentID, etc., but this worked like a champ.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.