| | |
How do i create a database in vb
![]() |
•
•
Join Date: Aug 2006
Posts: 2
Reputation:
Solved Threads: 0
This seems really stupid seeing as they are used so often but how do i create a database using vB 4.0? I am creating a login form and when the command button is hit it compares the username and encrypted password to the stored username and encrypted password, if its a match it continues to the next form, if not it spits out an error, can anyone help?
•
•
Join Date: Aug 2006
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by lover99509
You can use data control in the default tool box and your database is stored in access file just use the properties of the data control i.e. the databasename to locate the .mdb file and recordesource to work with any specified table from your database
i Hope this helps
They don't need access. the jet engine is in MDAC and thats included with win98 / 2000 / nt and xp so your VB app can access an mdb file even if the pc doesn't have MS Access on it.
You don't need a database for that. You could use a flat file, so long as you encrypt the password. Most of these "password files" are set up in the old unix fashion, where each username / password combination is stored on 1 line in the file (so if you had 10 users, you'd have 10 lines in the file). The username and the password would be separated by a delimiter (usually colon), and then split at the time of the read, so something like this:
Then, when the user types in the username and the password, you encrypt the password that they just typed in, the EXACT same way as you encrypted the password they typed in for the file. If the two encrypted passwords are the same, then they are good to go (and if the usernames are the same).
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
comatose:myencryptedpassword hollystyles:hisencryptedpassword keratinimp:yourencryptedpassword
•
•
Join Date: Jul 2006
Posts: 19
Reputation:
Solved Threads: 0
Hi, I myself am a complete novice, but i am also working on a database program similar to what you describe. Please download this project and you will see what is needed. Hope this helps you . Bill
http://www.andoverhydroponics.co.uk/Se/Example.zip
http://www.andoverhydroponics.co.uk/Se/Example.zip
![]() |
Similar Threads
- How do I create a database at run-time using VB6.0 (Visual Basic 4 / 5 / 6)
- How to create a database during the runtime in VB6?! (Visual Basic 4 / 5 / 6)
- Create an Access Database using Java (Java)
- How to create a database, (Community Introductions)
- Need to know how to create a database that will generate a random number (Database Design)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: permission settings
- Next Thread: Drive List Box Help Please for Error 68
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






