Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42457

How to query a dataset that has been added to my project

$
0
0
I am curious about using a dataset that I have added to my project (using the import wizard). I have the oledb connection code which should access my ACCDB, but, what if I want to use the datasource that has already been added? I cant find much on how to use an existing data source.

Name:  passworded.PNG
Views: 22
Size:  13.6 KB
Code:

        ' Open a connection to the database.
        Dim strConnection As String = _
          "Provider=Microsoft.Jet.OLEDB.12.0;Data Source=" _
          & "C:\Users\JasonLaptop\Desktop\helloworld.accdb"
        Dim cn As OleDbConnection = New OleDbConnection(strConnection)


        cn.Open()


'code to check/authorize here

        cn.Close()

What I am looking to do is to create a login form, and query login information to authorize a user, and if the hash doesnt match or if the user doesnt exist, not to allow access to the next form.
Attached Images
 

Viewing all articles
Browse latest Browse all 42457


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>