|
-
Oct 17th, 2001, 10:10 AM
#1
Thread Starter
Addicted Member
multi-user app
Hi,
I know that I'm not in the good section, but in the database section it's very long to have an answer...
I have an Access database. I want 2 or more users to be able to ADD records in the same tables at the same time but I get an error which said that the database is exclusively open by another user...blabla. What option do I have to put in the open of the database? The only thing I want to lock it's if 2 users are in the same record...that's it. No other security.
I open my database like this :
VB Code:
Dim con As Connection
Set con = New Connection
con.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & vectPref(2)
con.Open
Thanks in advance...
Ça l'air que baiser enlève les maux de tête! Baisons!
On se mets-tu tout nu?
-
Oct 17th, 2001, 10:17 AM
#2
Fanatic Member
why not have them access it a split second after each other?
if its on your computer, you might have to set the permissions to the database correctly, i think windows 2000 has the option
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Oct 17th, 2001, 10:21 AM
#3
Thread Starter
Addicted Member
Hi,
Thanks for the reply. The database works on a server. And which permission do I have to set to the DB in the code for 2 or more users add a record?
Thanks
Ça l'air que baiser enlève les maux de tête! Baisons!
On se mets-tu tout nu?
-
Oct 17th, 2001, 11:01 AM
#4
Thread Starter
Addicted Member
Ça l'air que baiser enlève les maux de tête! Baisons!
On se mets-tu tout nu?
-
Oct 17th, 2001, 11:04 AM
#5
Frenzied Member
Try using adLockOptimistic on the recordset LockType.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|