The padmcode is an integer. Therefore my original query structure is correct. There are total of 30 records. There is no problem for the dispaly of first 10 records. I said the problem is occuring when I press the number for the subsquent pages numbers. In the present case
page 2, and page 3.
Main Topics
Browse All Topics





by: JimWarnerPosted on 2009-09-17 at 13:46:06ID: 25360885
When using variables to define the query, you must use single quotes like this:
rscdbadd.open "select * from tblbasicAPPL where padmcode='" & Request("padmcode") & "' and cdhcrcd=1 order by subid, rank",objdbconnPGDclr,1,1.
It's hard to see here but it reads padmode=single quote doublequote Request("padmcode") & doublequote single quote cdhcrcd= etc.
Hope this helps