Solved

Login form in VB 2010 express

Posted on 2011-03-19
2
864 Views
Last Modified: 2012-08-13
Hello there...
I have been developing in MS Access for the last 10 year and frankly I don't understand VB...
I have an MDF File (MyMDFFile.mdf) and have a login form with two text boxes usernametxt and passwordtxt. I also have a an OKbtn and a Cancelbtn. within the MyMdfFile i have an accounts table, which stores all usernames, passwords and access levels.
What I want is the user to enter its username and password and then click the Okbtn. the OKbtn runs some type of code where it goes and check the username and password in the accounts table. and if ot maches it opens up the Mainform(Mainfrm).
Frankly, I have read a whole bunch of examples but nothing really walks me thru the process. I know how to do it in access but no clue in VBA.
Any help there???
0
Comment
Question by:raleon18
2 Comments
 
LVL 17

Expert Comment

by:dbaSQL
ID: 35173701
It might be a good idea to change the zone, or at least add the correct development zones (for VB) to your inquiry.  
0
 
LVL 7

Accepted Solution

by:
Alpha Au earned 500 total points
ID: 35186148
As You Mention a MDF file, are you using SQL Server, or Access(MDB)??

if you are using SQL Server, you'll need to attach the MDF file to SQL Server and let the program (VB.net) connect to SQL Server.

and i think the following tutorial can help you
http://www.google.com.hk/search?q=vb.net+login+form+tutorial&hl=zh-TW&client=firefox-a&hs=jvC&rls=org.mozilla:en-US:official&prmd=ivns&source=univ&tbm=vid&tbo=u&sa=X&ei=bAqITZ2OGYyHcfys3bQM&ved=0CG0QqwQ
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tools to scan a SQL server's problem 14 28
SQL Query 2 34
Stored Procedure needs owner to execute 5 24
Casting is giving error in sql server 3 12
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question