Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,536 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,770 people online right now. Registration is fast and FREE... Join Now!




UPDATING

 
Reply to this topicStart new topic

UPDATING, HOW CAN I MAKE SURE THAT THE SAME SHEET HAS 2 USES? ONE TO VIEW.ONE TO

ALVINCHAAND
17 Aug, 2008 - 11:46 AM
Post #1

New D.I.C Head
*

Joined: 17 Aug, 2008
Posts: 18

I HAVE 2 WORKBOOKS. ONE WITH VARIOUS NAMES, COUNTRY, GENDER AND THE OTHER WITH INFO ON THE PEOPLE WITH THOSE NAMES(ADDRESS, TEL NUM ETC)
I ALSO HAVE TWO TYPES OF USERS. ADMIN AND NORMAL USERS.
ADMIN IS ALLOWED TO UPDATE DATA IN THE ABOVE MENTIONED WORKBOOKS WHILE THE NORMAL USER CAN ONLY VIEW THE DATA AFTER DOING A SEARCH

WHAT CAN I DO SO THAT THE ADMIN IS ABLE TO UPDATE THE SAME PAGE AND WHEN DISPLAYED TO A USER, THE USER CAN ONLY VIEW THE INFO?

User is offlineProfile CardPM
+Quote Post

jacobjordan
RE: UPDATING
17 Aug, 2008 - 12:06 PM
Post #2

class Me : Perfection
Group Icon

Joined: 11 Jun, 2008
Posts: 1,166



Thanked: 32 times
Dream Kudos: 1625
My Contributions
HOW TO FIX A STUCK CAPS LOCK
User is offlineProfile CardPM
+Quote Post

tope10
RE: UPDATING
18 Aug, 2008 - 09:23 PM
Post #3

New D.I.C Head
*

Joined: 25 Jun, 2008
Posts: 22



Thanked: 2 times
My Contributions
QUOTE(ALVINCHAAND @ 17 Aug, 2008 - 12:46 PM) *

I HAVE 2 WORKBOOKS. ONE WITH VARIOUS NAMES, COUNTRY, GENDER AND THE OTHER WITH INFO ON THE PEOPLE WITH THOSE NAMES(ADDRESS, TEL NUM ETC)
I ALSO HAVE TWO TYPES OF USERS. ADMIN AND NORMAL USERS.
ADMIN IS ALLOWED TO UPDATE DATA IN THE ABOVE MENTIONED WORKBOOKS WHILE THE NORMAL USER CAN ONLY VIEW THE DATA AFTER DOING A SEARCH

WHAT CAN I DO SO THAT THE ADMIN IS ABLE TO UPDATE THE SAME PAGE AND WHEN DISPLAYED TO A USER, THE USER CAN ONLY VIEW THE INFO?


Your problem is so called user access level. In order to do that you have to check if the username during login is an admin or a normal user. IF your username is store on the database you are going to add a fields as for a user type. then in your vb code you are going to check it if username is for admin or not.

To set the Excel file for un editable you can use the printpreview. function.

obj_excel.Worksheets.PrintPreview
obj_excel.Worksheets.Visible = True
User is offlineProfile CardPM
+Quote Post

ALVINCHAAND
RE: UPDATING
21 Aug, 2008 - 04:58 AM
Post #4

New D.I.C Head
*

Joined: 17 Aug, 2008
Posts: 18

QUOTE(tope10 @ 18 Aug, 2008 - 10:23 PM) *

QUOTE(ALVINCHAAND @ 17 Aug, 2008 - 12:46 PM) *

I HAVE 2 WORKBOOKS. ONE WITH VARIOUS NAMES, COUNTRY, GENDER AND THE OTHER WITH INFO ON THE PEOPLE WITH THOSE NAMES(ADDRESS, TEL NUM ETC)
I ALSO HAVE TWO TYPES OF USERS. ADMIN AND NORMAL USERS.
ADMIN IS ALLOWED TO UPDATE DATA IN THE ABOVE MENTIONED WORKBOOKS WHILE THE NORMAL USER CAN ONLY VIEW THE DATA AFTER DOING A SEARCH

WHAT CAN I DO SO THAT THE ADMIN IS ABLE TO UPDATE THE SAME PAGE AND WHEN DISPLAYED TO A USER, THE USER CAN ONLY VIEW THE INFO?


Your problem is so called user access level. In order to do that you have to check if the username during login is an admin or a normal user. IF your username is store on the database you are going to add a fields as for a user type. then in your vb code you are going to check it if username is for admin or not.

To set the Excel file for un editable you can use the printpreview. function.

obj_excel.Worksheets.PrintPreview
obj_excel.Worksheets.Visible = True


Hello and thank you so much for your help i am truly grateful...i am just a beginner in VB and this is my first task. i really have no clue on how to go about doing alot of things in there... i will really apreciate if u could guide me along.
the code u provided:

obj_excel.Worksheets.PrintPreview
obj_excel.Worksheets.Visible = True

where am i to add them so that the user can view and the admin can view and edit
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 10:21PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month