How to make it Multiuser Programme

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 54
Reputation: pardeep3dec is an unknown quantity at this point 
Solved Threads: 1
pardeep3dec pardeep3dec is offline Offline
Junior Poster in Training

How to make it Multiuser Programme

 
0
  #1
Oct 17th, 2008
'I am putting my folder in sharing then try to use these from different pc but it shows
'file already in used PLEASE GIVE ME SOLUTION

visualbasic Syntax (Toggle Plain Text)
  1. Dim dblogin As New ADODB.Connection
  2. Dim rclo As New ADODB.Recordset
  3.  
  4.  
  5. Private Sub cmdok_Click()
  6. dblogin.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\tmgmt.mdb;Persist Security Info=False"
  7. rclo.Open "select uname,pas from p where pas='" & txtPassword.Text & "' and uname='" & txtusername.Text & "';", dblogin, adOpenDynamic, adLockBatchOptimistic
  8.  
  9. If (rclo.BOF = True And rclo.EOF = True) Then
  10. MsgBox "incorrect Username or Password", vbExclamation, "Logon Message"
  11. Else
  12. 'MsgBox "Login Successful", vbInformation, "Logon Message"
  13. lbuser.Caption = txtusername.Text: lbpass.Caption = txtPassword.Text
  14. Me.Hide
  15.  
  16. MDIForm1.Show
  17. End If
  18.  
  19. rclo.Close
  20. dblogin.Close
  21. Set rclo = Nothing
  22. Set dblogin = Nothing
  23. End Sub
Last edited by cscgal; Oct 17th, 2008 at 11:44 am. Reason: Added code tags
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 45
Reputation: AUGXIS is an unknown quantity at this point 
Solved Threads: 11
AUGXIS's Avatar
AUGXIS AUGXIS is offline Offline
Light Poster

Re: How to make it Multiuser Programme

 
0
  #2
Oct 17th, 2008
hi. you can put your database in a server then share it and on your program you just have to specify the path of your database. then you can now install your program on every pc.
Last edited by AUGXIS; Oct 17th, 2008 at 3:28 am.
Reply With Quote Quick reply to this message  
Reply

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



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC