guys help me

Thread Solved

Join Date: Sep 2006
Posts: 4
Reputation: sarathcbit is an unknown quantity at this point 
Solved Threads: 0
sarathcbit sarathcbit is offline Offline
Newbie Poster

guys help me

 
0
  #1
Sep 6th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 5
Dark_Omen Dark_Omen is offline Offline
Posting Pro

Re: guys help me

 
0
  #2
Sep 6th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 4
Reputation: sarathcbit is an unknown quantity at this point 
Solved Threads: 0
sarathcbit sarathcbit is offline Offline
Newbie Poster

Re: guys help me

 
0
  #3
Sep 6th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 573
Reputation: Dark_Omen is an unknown quantity at this point 
Solved Threads: 5
Dark_Omen Dark_Omen is offline Offline
Posting Pro

Re: guys help me

 
0
  #4
Sep 7th, 2006
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 1189 | Replies: 3
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2010 DaniWeb® LLC