Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. searching a dataset

searching a dataset

Scheduled Pinned Locked Moved Database
databasealgorithmstutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sean Cull
    wrote on last edited by
    #1

    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! :)

    R 1 Reply Last reply
    0
    • S Sean Cull

      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! :)

      R Offline
      R Offline
      Rickard Andersson20
      wrote on last edited by
      #2

      ADO or ADO.NET? Just execute a "SELECT MyUsernames FROM MyTableWithUsernames WHERE MyUsernames='theusename'" Execute with the ExecuteScalar 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++!

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups