searching a dataset
-
After doing some reading, I'm not exactly sure how to do this. Basically, I have a login screen with username and password textboxes. The user enters their information, then clicks Login. In the login button's click event I want to search an Access database table to see if the user is found, and if so, proceed to the main screen. Could someone point me in the right direction, or post a link to a code sample? It would be greatly appreciated! :)
-
After doing some reading, I'm not exactly sure how to do this. Basically, I have a login screen with username and password textboxes. The user enters their information, then clicks Login. In the login button's click event I want to search an Access database table to see if the user is found, and if so, proceed to the main screen. Could someone point me in the right direction, or post a link to a code sample? It would be greatly appreciated! :)
ADO or ADO.NET? Just execute a "
SELECT MyUsernames FROM MyTableWithUsernames WHERE MyUsernames='theusename'
" Execute with theExecuteScalar
function and see if the return value is 1, then 'theusername
' is found in the database. I hope I'm right... if not.... leppie will kick my ass and tech me a lesson! :) Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!