944,010 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 1263
  • VB.NET RSS
Sep 6th, 2006
0

guys help me

Expand Post »
HEY i need to differente bettween the admin and employee


admin can add delete and update

but employee can only add but cannot delete how cani do this



i want to use only one form for the table both shud use the same form but admin and employee options shud be different
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sarathcbit is offline Offline
4 posts
since Sep 2006
Sep 6th, 2006
0

Re: guys help me

that's easy enough, just make something that will differentiate between an admin and an employee. I am assumming you are using a database, just make a column for access where say 1 is emplyee and 2 is admin and allow anyone who has a 2 to have access to certain features.
Reputation Points: 23
Solved Threads: 6
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004
Sep 6th, 2006
0

Re: guys help me

i want to make a validation in the form its self //
let me xplain it to u


my form 1 has three radio buttons admin,ceo,staff


admin and ceo can add delete and insert but the employee can only view

i have created a connection to back end from form 2 and add it to the three radio buttons . now everyone is able to perform all the tasks ..

but i want to restrict it .. hope u got my problem

bye
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sarathcbit is offline Offline
4 posts
since Sep 2006
Sep 7th, 2006
0

Re: guys help me

I'm not too familiar with vb.net, but assumming it is like most language on the .net platform, I would create three different constructors (overloaded) and each constructor would set up the form differently for eac type of user.
Reputation Points: 23
Solved Threads: 6
Posting Pro
Dark_Omen is offline Offline
573 posts
since Apr 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: ENCRYPTION AND DECRYPTION - How to disable the File menu in a Notepad or any file
Next Thread in VB.NET Forum Timeline: Help me





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC