PC Review


Reply
Thread Tools Rate Thread

allowing or disallowing changing the state of check box

 
 
alekm
Guest
Posts: n/a
 
      14th May 2010
Hi,
what's the best moment to check if the user has right to change the state of
check box and then to allow it or cancel it. I've tried with "before update"
event procedure. It seems to work but after, when I press anything else on
the form event procedure is repeating?
Any help?
thanx

alekmil
 
Reply With Quote
 
 
 
 
alekm
Guest
Posts: n/a
 
      14th May 2010
One addition:
The problem occurs (repeating) when Cancel = True was applied previosly.

"alekm" wrote:

> Hi,
> what's the best moment to check if the user has right to change the state of
> check box and then to allow it or cancel it. I've tried with "before update"
> event procedure. It seems to work but after, when I press anything else on
> the form event procedure is repeating?
> Any help?
> thanx
>
> alekmil

 
Reply With Quote
 
Jeanette Cunningham
Guest
Posts: n/a
 
      14th May 2010
Try using the enter event of the checkbox to check if user has right to
change to checkbox.

If you don't want user to change the textbox, lock the textbox.

Me.TextboxName.Locked = True

If it's OK for the user to change the textbox, unlock it.
Me.TextboxName.Locked = False

Note: replace my object names with your names.


Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia

"alekm" <(E-Mail Removed)> wrote in message
news:A5BC3CEA-2E00-4820-A127-(E-Mail Removed)...
> One addition:
> The problem occurs (repeating) when Cancel = True was applied previosly.
>
> "alekm" wrote:
>
>> Hi,
>> what's the best moment to check if the user has right to change the state
>> of
>> check box and then to allow it or cancel it. I've tried with "before
>> update"
>> event procedure. It seems to work but after, when I press anything else
>> on
>> the form event procedure is repeating?
>> Any help?
>> thanx
>>
>> alekmil



 
Reply With Quote
 
Amy E. Baggott
Guest
Posts: n/a
 
      14th May 2010
Or you could disable it when the form is opened using the form's On Open or
On Current event. Use the same code.
--
Amy E. Baggott

"I''m going crazy and I''m taking all of you with me!" -- Linda Grayson


"Jeanette Cunningham" wrote:

> Try using the enter event of the checkbox to check if user has right to
> change to checkbox.
>
> If you don't want user to change the textbox, lock the textbox.
>
> Me.TextboxName.Locked = True
>
> If it's OK for the user to change the textbox, unlock it.
> Me.TextboxName.Locked = False
>
> Note: replace my object names with your names.
>
>
> Jeanette Cunningham MS Access MVP -- Melbourne Victoria Australia
>
> "alekm" <(E-Mail Removed)> wrote in message
> news:A5BC3CEA-2E00-4820-A127-(E-Mail Removed)...
> > One addition:
> > The problem occurs (repeating) when Cancel = True was applied previosly.
> >
> > "alekm" wrote:
> >
> >> Hi,
> >> what's the best moment to check if the user has right to change the state
> >> of
> >> check box and then to allow it or cancel it. I've tried with "before
> >> update"
> >> event procedure. It seems to work but after, when I press anything else
> >> on
> >> the form event procedure is repeating?
> >> Any help?
> >> thanx
> >>
> >> alekmil

>
>
> .
>

 
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
Allowing only 1 check box to be ticked =?Utf-8?B?TmFkaWE=?= Microsoft Excel Misc 12 28th Nov 2009 10:55 PM
Setting ListViewItem check state to indeterminate check Annette Miller Microsoft Dot NET Framework Forms 3 28th Oct 2005 09:23 AM
Not allowing 'Check for updates' Enquiring Spyware Discussion 2 8th Jan 2005 08:21 PM
Allowing or disallowing database window Adam Microsoft Access Security 2 11th Jun 2004 09:18 AM
disallowing move or delete of FOLDER but allowing full access to all files and subfolders within news.microsoft.com Microsoft Windows 2000 Security 0 7th Jul 2003 08:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:15 AM.