Solved

Login form in VB 2010 express

Posted on 2011-03-19
2
860 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:
alphaau 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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

911 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now