943,884 Members | Top Members by Rank

Ad:
Oct 17th, 2008
0

How to make it Multiuser Programme

Expand Post »
'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
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
pardeep3dec is offline Offline
87 posts
since Jul 2008
Oct 17th, 2008
0

Re: How to make it Multiuser Programme

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.
Reputation Points: 11
Solved Threads: 11
Light Poster
AUGXIS is offline Offline
45 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: So Many but no Replies
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VBA - shell





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC