accessing ms access from VB
hi....i m actually developing a tool which uses access as the database source...i hv created 2 coloumns in the database....username and password....now in my tool i need to ask the user fr his username and password....if it matches with any of the combinations stored in the database then the user can login ....cn anyone help me wiith dis ....
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
actually i know the steps to do it......but m nt being able to figure out how to connect to the database by using ADO......wen i try to open the database using the following code it opens up a SELECT DATA SOURCE DIALOGUE BOX.....plz help me wid this
Dim dbUserName As Database
Dim rsUserName As Recordset
Set dbUserName = OpenDatabase(db1)
dbi is the database name stored on the desktop....
the third line of code which is posting a problem...
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
thanx.... i hv been able to develope the tool......now i further want to modify it...
i.e now i want to connect/open up the database which is password protected....how do i do that through VB
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
i wud be grateful 2 u....plz post it 2day
anud18
Junior Poster in Training
52 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0