944,098 Members | Top Members by Rank

Ad:
-3

code to split (and reconnect) an Access database (part 1)

by on Apr 22nd, 2005
This code is to split a Microsoft Access database and re-connect it on launch so that you can use Access on a multi user network...After Splitting the database manually, place the following code in the form that launches when the database is launched...
Visual Basic 4 / 5 / 6 Code Snippet (Toggle Plain Text)
  1. Public Function BackEndLoc() As String
  2. 'BackEndLoc = "\\zeus\Family Documents\Richard's Work\license_keys_be.mdb"
  3. '...............that is the client's location for the file as _
  4. installed. It is commented out as I am working on it locally
  5. BackEndLoc = "\\zeus\Family Documents\Richard's Work\license_keys_be.mdb"
  6. '...............that is the location of my development backend dummy _
  7. data. This is currently active. I will switch the comment-outs when I _
  8. send an update to the client.
  9. End Function
  10.  
  11. Private Sub Form_Open(Cancel As Integer)
  12. Dim strBEPath As String
  13. ' Minimize the database window and initialize the form.
  14. strBEPath = BackEndLoc()
  15. 'other stuff
  16. End Sub
  17.  
  18. Use the real path to the back end on the server in the function.
Comments on this Code Snippet
Oct 9th, 2009
0

Re: code to split (and reconnect) an Access database (part 1)

hi please include the objects that are needed in the code.
Newbie Poster
mayet is offline Offline
1 posts
since Oct 2009
Oct 12th, 2009
1

Re: code to split (and reconnect) an Access database (part 1)

how to connect vb6 to ms access
Newbie Poster
jeremiahnicole is offline Offline
1 posts
since Oct 2009
Oct 21st, 2009
0

Re: code to split (and reconnect) an Access database (part 1)

please anybody can make LCM of n>2 numbers and send it to
azad.meerkhan@gmail.com
Newbie Poster
azadohy is offline Offline
1 posts
since Oct 2009
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Study material
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: How to open an outlook email template from a link?





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


Follow us on Twitter


© 2011 DaniWeb® LLC