I'm back again as I'm waiting for the coffee to kick in and have another question that seems to be not causing my brain cells to fire correctly.

I've set the following code to determine the line numbers of all rows returned from the procedure loop.

```
linenum = 0
Do While (rsData.Read())
  linenum = linenum + 1
loop

```

Now I'm trying to code a button that will move users to different sections depending on the linenumber returned.

So if there's only one linenum with a value of 1, they get a button to 'Apply'.

If the total linenum values are greater than 1, they get a button to 'select apply date'.

Now again I'm having a brain fart and can't think of the logic if theres a linenum of 1+ how to determine the button should be displayed. It needs to include the value of 1 as well as there are more than one linenums so the button should display the 'select apply button'.

Any ideas?

Thanks!