K
Keith Smith
For authentication purposes I query my Access database using a Username and
Password. If the dataset turns up empty then the user does not have access.
If it shows up with a value in the dataset then the user is authenticated.
The problem I am having is that when I count the number of entries in my
dataset it always shows up as "1". Even when I query the database with
values that aren't in the database.
I am using this code...
int RecordCount=dtSet.Tables.Count;
Is there a better way to count the entries in a dataset? Or perhaps a
better way of authentication all together?
Password. If the dataset turns up empty then the user does not have access.
If it shows up with a value in the dataset then the user is authenticated.
The problem I am having is that when I count the number of entries in my
dataset it always shows up as "1". Even when I query the database with
values that aren't in the database.
I am using this code...
int RecordCount=dtSet.Tables.Count;
Is there a better way to count the entries in a dataset? Or perhaps a
better way of authentication all together?