Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access of several users to a database

Status
Not open for further replies.

yobensh

Technical User
Jan 13, 2006
17
0
0
IL
Hi all,

I'm trying to figure out how to make it work...
I have an Access2000 as a database for my application which is installed at several users.
How can I let more than one user to access the database and update it so others can see the changes?

here is what I have now:

Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

On Error GoTo err

'open connection to db
cn.Open "DSN=MPS"
rs.Open "Data", cn, adOpenDynamic, adLockOptimistic

....
what am I doing wrong here?
I'm getting an error that says something like: "This file is in use by other user"

Thanks in advance for your help!
Yoav
 
you need to set up your connection string in a way that allows multiuser access, as well as setting the MDB itself.

look at thread709-1177286 for a microsoft link on it, and also at for connection strings samples.


Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top