Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 3rd, 2006, 04:48 PM
Registered User
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Login for a VB Studio Access Database

I am tryin to create a login for a VB Studio 2005 program for an Access database that resides locally (I do not want a web based login) It needs to check the username and password and if validated allow the user to go the VB form for the database. Anyone know how to do this?

 
Old December 4th, 2006, 09:17 AM
Registered User
 
Join Date: Jul 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to miketayo
Default

first create ur database and connect to it using the code below

"Provider=Microsoft.Jet.OLEDB.4.0;User ID= Gbenga;Password= minestone;Data Source= c:\mydata.mdb Mode=ReadWrite;Jet OLEDB:System database= myworkgroup.mdw Jet OLEDB:Engine Type=5"

where User ID and Password should be the name and password of the owner of the database
system database should be the name of the workgroup file which contains the database information.

After you connecting to the database design a small form for login where you can add, remove or delete users and new users can create their name and password and existing users can just login.






Similar Threads
Thread Thread Starter Forum Replies Last Post
VB 2005 Application vs. Access Database dirtdog22 Visual Basic 2005 Basics 1 April 19th, 2008 08:27 AM
Creating login form with access database Belzebu Visual Basic 2005 Basics 0 November 8th, 2007 11:33 AM
VB 6.0 - MS Access Database wbh7 Beginning VB 6 1 May 21st, 2007 07:31 AM
login fails after SqlServer Studio has been opened TomH VB Databases Basics 1 October 1st, 2006 04:44 PM
how vb.net connect access database abbee99 ADO.NET 1 April 29th, 2005 04:21 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.