CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 A simple SQL (select) question

Print topic Send  topic

Author Message
alfonso

Posts: 121
Posted: 04/11/2006, 10:40 AM

I want to select only 2º and 3º record in a table, but not first record.

Can you help me?

Thanks
View profile  Send private message
Maybe
Posted: 04/11/2006, 6:07 PM

Something like this will help you on your way

sql = "select * from users"
set rs =ADO.execute(sql)

'if you don’t want the first in the database then:

rs.MoveFirst

FOR i=2 to 3
grid.label.Value = rs("yourName")

Dont forget to declare the dims
Kleberson
Posted: 04/17/2006, 4:29 AM

OR

SELECT TOP 2 * FROM TABLE WHERE ID NOT IN (SELECT TOP 1 FROM TABLE)
alfonso

Posts: 121
Posted: 04/20/2006, 8:39 AM

Thanks everybody
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.

MS Access to Web

Convert MS Access to Web.
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.