473,387 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Letting a user know they dont have access to a subform?

I have a form, with a subform that changes AllowsEdits,AllowAdditions,
etc depending on who is coming in. This is done by using the OpenArgs
and is working fine.

However, if the user is restricted (meaning no additions, deletions,
etc) they can still click on a combobox, just nothing happens.

A couple of additional thoughts:

1) Using enabled=false is not an option because the user doesnt like
the ghosted look.
2) We need to keep the subform visible, because it acts as a reference
for the user.

Is there any way that if a control on a subform is clicked and the form
has AllowEditions, AllowAdditions set to False, that it says "You dont
have access to this form?"

Thanks,
Brian

Dec 18 '06 #1
4 1616
On 17 Dec 2006 20:19:10 -0800, "BerkshireGuy"
<be*************************@yahoo.comwrote:
>I have a form, with a subform that changes AllowsEdits,AllowAdditions,
etc depending on who is coming in. This is done by using the OpenArgs
and is working fine.

However, if the user is restricted (meaning no additions, deletions,
etc) they can still click on a combobox, just nothing happens.

A couple of additional thoughts:

1) Using enabled=false is not an option because the user doesnt like
the ghosted look.
2) We need to keep the subform visible, because it acts as a reference
for the user.
Disable the subform control itself (in the main form) rather than trying to
disable controls within the subform.
They won't be able to click in the subform but it won't appear greyed out
(ghosted look).

Wayne Gillespie
Gosford NSW Australia
Dec 18 '06 #2
On Mon, 18 Dec 2006 05:54:22 GMT, Wayne Gillespie <be*****@NOhotmailSPAM.com.au>
wrote:
>On 17 Dec 2006 20:19:10 -0800, "BerkshireGuy"
<be*************************@yahoo.comwrote:
>>I have a form, with a subform that changes AllowsEdits,AllowAdditions,
etc depending on who is coming in. This is done by using the OpenArgs
and is working fine.

However, if the user is restricted (meaning no additions, deletions,
etc) they can still click on a combobox, just nothing happens.

A couple of additional thoughts:

1) Using enabled=false is not an option because the user doesnt like
the ghosted look.
2) We need to keep the subform visible, because it acts as a reference
for the user.

Disable the subform control itself (in the main form) rather than trying to
disable controls within the subform.
They won't be able to click in the subform but it won't appear greyed out
(ghosted look).
Me.frmNameOfSubform.Enabled = Me.AllowEdits

Wayne Gillespie
Gosford NSW Australia
Dec 18 '06 #3
Can I do a msgbox box if they do click in the form just letting them
know its locked down?

Wayne Gillespie wrote:
On Mon, 18 Dec 2006 05:54:22 GMT, Wayne Gillespie <be*****@NOhotmailSPAM.com.au>
wrote:
On 17 Dec 2006 20:19:10 -0800, "BerkshireGuy"
<be*************************@yahoo.comwrote:
>I have a form, with a subform that changes AllowsEdits,AllowAdditions,
etc depending on who is coming in. This is done by using the OpenArgs
and is working fine.

However, if the user is restricted (meaning no additions, deletions,
etc) they can still click on a combobox, just nothing happens.

A couple of additional thoughts:

1) Using enabled=false is not an option because the user doesnt like
the ghosted look.
2) We need to keep the subform visible, because it acts as a reference
for the user.
Disable the subform control itself (in the main form) rather than trying to
disable controls within the subform.
They won't be able to click in the subform but it won't appear greyed out
(ghosted look).

Me.frmNameOfSubform.Enabled = Me.AllowEdits

Wayne Gillespie
Gosford NSW Australia
Dec 18 '06 #4
"BerkshireGuy" <be*************************@yahoo.comwrote in
news:11**********************@f1g2000cwa.googlegro ups.com:
1) Using enabled=false is not an option because the user
doesnt like the ghosted look.
Just because some luser doesn't like the look is no reason to
violate Windows User Interface Default Behaviour. And It's
behaviour that's across the Windows operating system and the
great majority of applications. Tell the luser to go argue with
Bill Gates.

And what about this luser's employees? (you imply that there are
suers who have different access rights). Tell him that it'll
cost extra in learning time for every new employee who has to
deal with learning this non-standard user interface. They
usually back off pretty quickly that this sort of nonsense
affects the bottom line.
Is there any way that if a control on a subform is clicked and
the form has AllowEditions, AllowAdditions set to False, that
it says "You dont have access to this form?"
If you can't get a change of mind, set the .locked property for
the subform control to yes, then use the form's OnMouseMove
event to test if the mouse is over the subform and pop up a
message saying that the form is locked.

The mousemove event supplies mouse position properties, that can
be checked against the subform's top, left, top+height and
left+width values to determine if the message should appear.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Dec 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Κώστας Χύτας | last post by:
Hello!!! Can i add a user control in Access database file (mdb)? I want to make o form in an mdb file and i want to add my button. Hope You can help me. Thanks
2
by: Joe Saliba | last post by:
hi, hope somebody could help me with this, have some users created on an sql 2000, and am trying to know which user opened the adp , so everytime i put msgobx currentuser it gives me admin, though...
0
by: Petr PALAS | last post by:
Hi, being a regular reader of these groups for more than year I would like to inform you about our new component PortSight Secure Access 1.1 for ASP.NET. It solves many issues discussed here -...
1
by: Andre | last post by:
I've set up the accessKey for my Submit button to 'S'. The usual Windows method for letting the user know would be to underline the 'S' in Submit on the button text. How do I do this in the Text...
1
by: Marc Eggenberger | last post by:
Hi there .. I have the following scenario. I have a Webservice which is running under Win2003/IIS6 with .Net1.1 The Service itselfs connects to a database which is a SQL 2000 on a Server in...
4
by: Daniel | last post by:
is there a way to detect if a user tries to access a php file? For instance, db.config.php is called in many php pages but should never actually be open directly. Is there a way to know if...
1
by: zlf | last post by:
Hello my website has role based access, and user without specific role assigned cannot access specific page in website. When the user try to access a page who has not been granted to access, the...
3
by: john20 | last post by:
Hi All, I have created web application using vb.net and deployed on the windows 2003 server. what is happening that multiple user cannot access the application means when one user access the...
0
by: Gordon Padwick | last post by:
A form contains controls, one or more of which can be other forms. A form that contains another form is known as a main form. A form contained by a main form is known as a subform. A subform itself...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.