How do i create a database in vb

Reply

Join Date: Aug 2006
Posts: 2
Reputation: keratinimp is an unknown quantity at this point 
Solved Threads: 0
keratinimp keratinimp is offline Offline
Newbie Poster

How do i create a database in vb

 
0
  #1
Aug 10th, 2006
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?
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 21
Reputation: lover99509 is an unknown quantity at this point 
Solved Threads: 1
lover99509 lover99509 is offline Offline
Newbie Poster

Re: How do i create a database in vb

 
0
  #2
Aug 15th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2
Reputation: keratinimp is an unknown quantity at this point 
Solved Threads: 0
keratinimp keratinimp is offline Offline
Newbie Poster

Re: How do i create a database in vb

 
0
  #3
Aug 15th, 2006
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
is there no way to create the database so that the program can access and use it without having M$ access? Its just the program i am writing I would usually use M$ access but the user doesn't have M$ access this time or any other database programs so i was rather hoping there would be a way to use databases using vB only.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1,181
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 67
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: How do i create a database in vb

 
0
  #4
Aug 15th, 2006
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.
==========================================
Yadda yadda yadda...
Web junky, fevered monkey
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: How do i create a database in vb

 
0
  #5
Aug 15th, 2006
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:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. comatose:myencryptedpassword
  2. hollystyles:hisencryptedpassword
  3. keratinimp:yourencryptedpassword
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).
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 36
Reputation: Shefali is an unknown quantity at this point 
Solved Threads: 0
Shefali Shefali is offline Offline
Light Poster

Re: How do i create a database in vb

 
0
  #6
Aug 18th, 2006
u can use visdata to make a database.. access isnt needed to be present in ur comp. to open visdata: click as follows
addin>visual data manager. visdata wud be open.
then click
file>new>microsoft access> version X.0 MDB (X is the digit u wud prefer)
and then its pretty straight forward.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: How do i create a database in vb

 
0
  #7
Aug 19th, 2006
Cool.

*Adds it to his list of "things"*
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 19
Reputation: jasper54321 is an unknown quantity at this point 
Solved Threads: 0
jasper54321 jasper54321 is offline Offline
Newbie Poster

Re: How do i create a database in vb

 
0
  #8
Aug 19th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 19
Reputation: jasper54321 is an unknown quantity at this point 
Solved Threads: 0
jasper54321 jasper54321 is offline Offline
Newbie Poster

Re: How do i create a database in vb

 
0
  #9
Aug 19th, 2006
Sorry i forgot to mention that you may get an error message somthing like " object not found " this will be because the database file, .MDB file is not included in the zip. You would make your own data base file in VB. I thing if i remeber correctly i named mine Phone.mdb
Hope that made sense. Bill
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC