Results 1 to 5 of 5

Thread: multi-user app

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Shannon, Quebec, Canada
    Posts
    251

    Angry 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:
    1. Dim con As Connection
    2.     Set con = New Connection
    3.     con.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & vectPref(2)
    4.     con.Open

    Thanks in advance...
    Ça l'air que baiser enlève les maux de tête! Baisons!

    On se mets-tu tout nu?

  2. #2
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    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?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Shannon, Quebec, Canada
    Posts
    251
    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?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    Shannon, Quebec, Canada
    Posts
    251
    Nobody?
    Ça l'air que baiser enlève les maux de tête! Baisons!

    On se mets-tu tout nu?

  5. #5
    Frenzied Member seoptimizer2001's Avatar
    Join Date
    Apr 2001
    Location
    Toledo, Ohio USA GMT -5
    Posts
    1,075
    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
  •  



Click Here to Expand Forum to Full Width