|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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 ![]() |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Using a tab control, how to restrict a certain tab with pass/login |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|