Jackie Posted March 23, 2006 Share Posted March 23, 2006 I have a website which we'll call 'Admin' where I can go in as an admin and create records that then display on another website which we'll call 'Groups'. I would like to order my records on the 'Group site' to display the last record I updated as the first record on the page. Is there a SQL statement that I can add in my 'Group' page instead of my Order by group_name or do I have to change it for the 'Admin' site for it to work? Link to comment Share on other sites More sharing options...
Siddhesh Posted March 24, 2006 Share Posted March 24, 2006 I have a website which we'll call 'Admin' where I can go in as an admin and create records that then display on another website which we'll call 'Groups'. I would like to order my records on the 'Group site' to display the last record I updated as the first record on the page. Is there a SQL statement that I can add in my 'Group' page instead of my Order by group_name or do I have to change it for the 'Admin' site for it to work?<{POST_SNAPBACK}> You can use SQL statement on ur group page as " Order By Update_Date Desc " Link to comment Share on other sites More sharing options...
Jackie Posted March 24, 2006 Author Share Posted March 24, 2006 I got the following error.... Microsoft OLE DB Provider for ODBC Drivers error '80040e14' [Microsoft][ODBC SQL Server Driver] Invalid column name 'Update_Date'. /publicprojects/afs/start.asp, line 102 Link to comment Share on other sites More sharing options...
Jackie Posted March 24, 2006 Author Share Posted March 24, 2006 Solution:I updated a new column to my database called 'group_order'. Then I did an "Order By group_order" in my 'Group' page and it worked!Thank you for your feedback. It put me on the right track.Jackie Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now