For debugging purposes, I'll often output a variable value so I can see what's going on... I can't see a problem with your code (other than the fact that your missing a couple of </cfif>'s)<br><br>right after your CFQUERY tag, put this (temporarily, of course): <cfoutput>start=#start# maxrows=#maxrows#</cfoutput> so you can see why CF is choking on this... Everything looks fine, but it looks like your start variable is either less than 1 or not a number at all according to your error message...<br><br>If it ends up that #start# is not a number, it's possible (I didn't check it out, though) that start may be a reserved word, so you may want to try changing the variable name.<br><br>Another possibility: Is 'Start' one of your column names? If so, you may be reading #start# from the query and not from the form field...