Redhead
02-07-2007, 11:10 AM
Hi There
i'm so so so new to asp and need some help.. i have a db and script that pull everthing.. all i want to try and do know is pull the first 3 records, or the last 3 that were entered in..
i tryed this:
strSQL = "SELECT * FROM tblNews WHERE ID >= 1 AND ID >= 3 ORDER BY NewsDate DESC"
and it dont like that.. is there a way to pull out the last 3 entries in the db??
Thank you..
i'm so so so new to asp and need some help.. i have a db and script that pull everthing.. all i want to try and do know is pull the first 3 records, or the last 3 that were entered in..
i tryed this:
strSQL = "SELECT * FROM tblNews WHERE ID >= 1 AND ID >= 3 ORDER BY NewsDate DESC"
and it dont like that.. is there a way to pull out the last 3 entries in the db??
Thank you..