Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 24th, 2006, 05:21 AM
JohnWesley JohnWesley is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 3 JohnWesley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 41 m 16 sec
Reputation Power: 0
Question Using a tab control, how to restrict a certain tab with pass/login

im making a database project in access that is going to display customer feedback in different ways, for review, to edit and enter etc.

using a tab control for access to each one, i would appreciate to know if i could make, for example the first or and second tab accessable to all and have some kind of admin verification via a pop up password dialog box appear when tabs three and four are clicked.
Thanks in advance if anyone has any information

and out of curiosity, on recommendation or personal comments : VB6 or .NET?

Reply With Quote
  #2  
Old May 26th, 2006, 03:03 AM
wjarrett's Avatar
wjarrett wjarrett is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Idaho
Posts: 97 wjarrett User rank is Sergeant (500 - 2000 Reputation Level)wjarrett User rank is Sergeant (500 - 2000 Reputation Level)wjarrett User rank is Sergeant (500 - 2000 Reputation Level)wjarrett User rank is Sergeant (500 - 2000 Reputation Level)wjarrett User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 6 h 52 m 22 sec
Reputation Power: 24
Not quite sure what you are after but....

If I am reading you right what you want to do is restrict some users from certain features right?

You could try using VBA IF Then Else statements. Example

If you have a table of users add three fields :
User
Supervisor
Administrator

Make them yes/no fields

On your form add fields that will contain the users data from your table, you can disable or hide the fields if you wish.

Then incorporate a logic statement into the form like the on open event.

If User = True Then
Control1.enabled = true
Control2.enabled = false
Control3.enabled = false
Else
End If

If Supervisor = true Then
Control1.enabled = true
Control2.enabled = true
Control3.enabled = False
Else
End If

If Administrator = true Then
Control1.enabled = true
Control2.enabled = true
Control3.enabled = true
Else
End If

Basically you would set up a user permissions scenario and make them log in initially, which would control what they have access to.

I have found this is much more user friendly in the long run.

If thats not what your after, ill try to help more if you give a little more info


Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Using a tab control, how to restrict a certain tab with pass/login


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT