Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 16th, 2007, 07:41 AM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access (.mdb) over network using Jet 4 OLE DB

Hi,

I'm trying to use Ms Access mdb on a network using a shared folder on a machine. I'm having trouble running the application simultaneously on more than one computer on the network and gives an error something like this "File in use". They work fine when I run them individually.

How can I solve this problem? Furthermore the crystal report in the application is also not showing on the machine on which the mdb does not reside. It works fine on the machine with the mdb. The path in the CR designer is correct.

Here is the code.

Code:
'These lines go in a Module so that it makes it easy to use the objects in differnt forms
Option Explicit
Public con As New ADODB.Connection
Public rs As New ADODB.Recordset
'Module ends

Private Sub MDIForm_Load()
con.Provider = "Microsoft Jet 4.0 OLE DB Provider"
con.Properties("Jet OLEDB:Database Password") = "abc"
con.Open ("Data Source=\\jsf\jsf\JSF.mdb")
rs.CursorType = adOpenDynamic
rs.LockType = adLockOptimistic
rs.ActiveConnection = con
End Sub
I would really appreciate if anyone can give me a few tips soon.

Anxiously waiting for replies.

Take care, Peace!

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to Access via OLE-DB mairejo Access 3 October 26th, 2004 02:28 PM
JET DB Engine Disk or network error -Dman100- Access ASP 2 April 28th, 2004 12:22 AM
VBA OLE DB Jet Initialization Jase Excel VBA 0 April 14th, 2004 04:26 PM
Need HELP, MS access DB, Jet OLEDB, asp Caley L. Baumgart Classic ASP Databases 7 March 23rd, 2004 11:53 AM
Access DB Connection (Jet cannot Open) M.L.Srinivas Classic ASP Databases 7 October 8th, 2003 08:21 AM



All times are GMT -4. The time now is 05:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.