If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Can Access Lock Users out of a File?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-13-03, 15:20
Mightymax Mightymax is offline
Registered User
 
Join Date: Aug 2003
Posts: 4
Question Can Access Lock Users out of a File?

I need to create a DB that will keep users from accessing the same file. Essentially locking other out when one user is accessing the file.

Is there a way for access to do this? Any help is appreciated.

Thanks, Max
Reply With Quote
  #2 (permalink)  
Old 08-14-03, 04:24
Strucnjak Strucnjak is offline
Registered User
 
Join Date: Aug 2003
Location: Bosnia & Hercegovina
Posts: 57
is this about mdb/mde file locking or general file locking?

access itself does not lock files, except it's own when compacting....

but you could create function that does it for you and put it in access....
Reply With Quote
  #3 (permalink)  
Old 08-14-03, 04:59
izyrider izyrider is offline
Cavalier King Charles
 
Join Date: Dec 2002
Location: Préverenges, Switzerland
Posts: 3,729
if your "file" is an access table that you are feeding to a form, your form has
Properties ¦ Data ¦ Record Locks = All Records or No Locks or Edited Record

if you choose All Records, second and subsequent users of the form can see data but not edit (and get a beep & status msg if they try).

if your "file" is not an access table - what is it?

izy
Reply With Quote
  #4 (permalink)  
Old 08-14-03, 20:56
Mightymax Mightymax is offline
Registered User
 
Join Date: Aug 2003
Posts: 4
No idea. This is all in the beginning planning stages.

What I'm suppose to make is a document management type program. But have no idea.

Does anyone know of any code to help me get started.

Thanks for the help
Reply With Quote
  #5 (permalink)  
Old 09-15-03, 14:50
Mightymax Mightymax is offline
Registered User
 
Join Date: Aug 2003
Posts: 4
file locking

Quote:
Originally posted by Strucnjak
is this about mdb/mde file locking or general file locking?

access itself does not lock files, except it's own when compacting....

but you could create function that does it for you and put it in access....
It's regarding general file locking. I need the users to view files (like in explore), the admin will need to assign a folder/file to a user to work on. That folder will now be locked so no one else can open it and make revisions to it, or undo the others work.

I hope this makes sense. Your help is appreciated
Reply With Quote
  #6 (permalink)  
Old 09-15-03, 16:33
RedNeckGeek RedNeckGeek is offline
Village Idiot
 
Join Date: Jul 2003
Location: Michigan
Posts: 1,941
This sounds like something you would need to use API for.
Try going to allapi.net They give a pretty decent explanation
for each API call, and good examples of how to use it in VB.
__________________
Inspiration Through Fermentation
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 On
Pingbacks are On
Refbacks are On