16. marts 2007 - 10:14Der er
11 kommentarer og 1 løsning
låsning af tabel
Hej Jeg sidder med en access 2000 database som består af ca 20 forskellige. Det er meningen at flere brugere skal kunne arbejde i databasen på samme tid.
Hvordan opsætter man en lås således at hvis en tabel er åben af en anden bruger gøres andre brugere opmærksom på dette når de ønske at åbne tabellen.
Dette skal kun være aktuelt når man ønsker at åbne en tabel der er åben.
... som består af ca 20 forskellige. Forskellige hvad?
As far as I know you cant. You can get Access to generate an error if two people try editing the same record but not becuase to people want to see the same record.
as far as I know it isnt possible with Access own security methods. And if you want to work directly in tables then I very much doubt you can make your own security method. If you work through form then you maybe can.
An idea would be to have a table which contains information such as User name, form name and a yes/no field indicating if that user is using that table.
When a user want to open a form with on eor more underlaying tables a check is made to see if any other user has that form open. If they do then a message is displayed. If not the yes no field is set to Yes(true). When the form is closed the field gets set to No(false)
stusus is that we dropped the locking of tabels and uses an old proven method we call the datamonkey. The person which uses the data take the toy datamonkey and then the others know who uses the database. This was the only way we could make it work
can you explain waht your datamonkey is, maybe a field in the record you set to on/off? If your finished with th equestion you can close either by palcing an asnwer yourselef and accepting or accepting other answers.
we use a stuffed toy formed as a monkey to indicate which user have the database. The user who wants the database go to the physical place where the monkey and place it on the users place
You are right this was the best and simplest way we could do it. And yes keep it simple
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.