PC Review


Reply
Thread Tools Rate Thread

Check if current record is being edited by another user

 
 
Cheese_whiz
Guest
Posts: n/a
 
      10th Sep 2008
Hi all,

I have some forms where I don't want the record selector visible, so the
little pencil that indicates a record is currently being edited by another
user doesn't show up. Is it possible to check that in vba?

Thanks,
CW
 
Reply With Quote
 
 
 
 
Jim Burke in Novi
Guest
Posts: n/a
 
      10th Sep 2008
I've never used this so I can't say it will do exactly what you want, but
there's a 'Record Locks' Form Property that you can set to 'Edited Record'. I
think that this will give a user a default Access error message telling them
the record is locked. I would think you could find out the error number for
that message, then in the form's On Current event you could code an On Error
statement, and check for that error number, and when that error comes up you
could display your own message in place of the default Access message. I'm
pretty sure the Record Locks property should work, but the part about
capturing that error for your own display I'm not sure at all. Like I said, I
haven't tried this!

"Cheese_whiz" wrote:

> Hi all,
>
> I have some forms where I don't want the record selector visible, so the
> little pencil that indicates a record is currently being edited by another
> user doesn't show up. Is it possible to check that in vba?
>
> Thanks,
> CW

 
Reply With Quote
 
Cheese_whiz
Guest
Posts: n/a
 
      11th Sep 2008
Thanks for the reply, Jim

I found something kind of similar to that about 8 pages deep in my 30th
google search. Of course, the idea is to indicate that the record is locked
before a user wastes time editing it, but the old post I saw I think was
indicating that you could try to update the record on the form's current
event which would throw the error if it were being edited and at least you'd
know, at the time you first entered the record, whether or not it was locked.

Anyway, I may have to play around with that idea a little more. I do
appreciate the response.

CW

"Jim Burke in Novi" wrote:

> I've never used this so I can't say it will do exactly what you want, but
> there's a 'Record Locks' Form Property that you can set to 'Edited Record'. I
> think that this will give a user a default Access error message telling them
> the record is locked. I would think you could find out the error number for
> that message, then in the form's On Current event you could code an On Error
> statement, and check for that error number, and when that error comes up you
> could display your own message in place of the default Access message. I'm
> pretty sure the Record Locks property should work, but the part about
> capturing that error for your own display I'm not sure at all. Like I said, I
> haven't tried this!
>
> "Cheese_whiz" wrote:
>
> > Hi all,
> >
> > I have some forms where I don't want the record selector visible, so the
> > little pencil that indicates a record is currently being edited by another
> > user doesn't show up. Is it possible to check that in vba?
> >
> > Thanks,
> > CW

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Keep Spell Check On Current Record JamesJ Microsoft Access Forms 3 14th Sep 2009 08:58 PM
Check if current form record is new McGeeky Microsoft Access Forms 2 11th Feb 2009 12:37 PM
By Code, Is A record being Edited by another user DDBeards Microsoft Access Form Coding 4 13th Dec 2008 06:46 PM
current user's name who last edited a record in MS access 2000 =?Utf-8?B?TGFzdCB1c2VyJ3MgbmFtZSB0aGF0IG1vZGlmaWVk Microsoft Access Database Table Design 2 6th Oct 2005 05:57 PM
Spell check current record only? =?Utf-8?B?TWVsdmlz?= Microsoft Access Form Coding 1 29th Sep 2004 02:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:28 AM.