I am trying to write a login script which takes in a username and password and checks for a match in the database. If there is a match I would expect that the dataset table would contain one row...or at least more than no rows. The problem occurs in finding out if the table is empty. I have tried to check if it is equal to NULL, but that is not allowed, and if i see if row(0) is empty then it simply gives an error saying that there is now row 0. What is the best way to approach this.