473,395 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

might have to control user view..?

Just died a little db of our time sheets and think that I might have a
problem.
I just put a pulldown of the employees and a week that they are
entering time. Then in a continuous list in a sub form they have
pulldowns for dept, and job...field for hrs worked and comments.

simple but I was thinking or one future problem. They have no concerns
of who does what. I can view and even edit other peoples time...which
is ok. I will be submitting quartly reports of this information BUT
what of someone else viewing and editing another persons hrs.
I asked the mgr and they said no problems, everyone should know what
everyone else is working on anyway.
BUT in the future I can see this as having to be changed in some way.
How could I make this so that bob can only enter/edit his time ...etc
I thought of seperate databases for each person...would this be a
problem on a one to many with autoid's to import/append the data from
each person into one database for reports?
Start autoid at 1000,5000,10000 for each person to make sure there is
no overlap ??? Kinda sounds iffey

Would be cool for them to put in a number on startup and only
create/see records associated with that access number...easy to get
around by looking in a table for the numbers but what the heck.
I have tought of a lot of things nothing sounds all that great, and
just more work for me later.

Thanks big time for any ideas or comments....has anyone done this
before..
Jan 14 '07 #1
2 1133
Comments inline

"sparks" <sp****@somewhere.comschreef in bericht news:j6********************************@4ax.com...

<snipped>
How could I make this so that bob can only enter/edit his time ...etc
I thought of seperate databases for each person...would this be a
problem on a one to many with autoid's to import/append the data from
each person into one database for reports?
Start autoid at 1000,5000,10000 for each person to make sure there is
no overlap ??? Kinda sounds iffey
NO you should NEVER create databases for each person.
Just identify who's logged on and limit the query's/forms/records to that personID.
You could identify the user by means of userlevel security (not that easy if this is new for you...)
You could also possibly identify the user by means of the Windows logon.
Code for this can be found by Googling on 'fOSUserName'
Would be cool for them to put in a number on startup and only
create/see records associated with that access number...easy to get
around by looking in a table for the numbers but what the heck.
I have tought of a lot of things nothing sounds all that great, and
just more work for me later.

Thanks big time for any ideas or comments....has anyone done this
before..
Identify the user as explained above or let the user identify his/herself by choosing an entry in a combobox.
Choose what suits your needs best.
Once you 'know' the personID you only give them access to their own records.
Post back if you need more help.

Arno R
Jan 15 '07 #2
Thanks I will have to look into this.
Have you read any books that deal with this kind of thing?

Sparks
On Mon, 15 Jan 2007 13:22:50 +0100, "Arno R"
<ar***********@tiscali.nlwrote:
>Comments inline

"sparks" <sp****@somewhere.comschreef in bericht news:j6********************************@4ax.com...

<snipped>
>How could I make this so that bob can only enter/edit his time ...etc
I thought of seperate databases for each person...would this be a
problem on a one to many with autoid's to import/append the data from
each person into one database for reports?
Start autoid at 1000,5000,10000 for each person to make sure there is
no overlap ??? Kinda sounds iffey

NO you should NEVER create databases for each person.
Just identify who's logged on and limit the query's/forms/records to that personID.
You could identify the user by means of userlevel security (not that easy if this is new for you...)
You could also possibly identify the user by means of the Windows logon.
Code for this can be found by Googling on 'fOSUserName'
>Would be cool for them to put in a number on startup and only
create/see records associated with that access number...easy to get
around by looking in a table for the numbers but what the heck.
I have tought of a lot of things nothing sounds all that great, and
just more work for me later.

Thanks big time for any ideas or comments....has anyone done this
before..

Identify the user as explained above or let the user identify his/herself by choosing an entry in a combobox.
Choose what suits your needs best.
Once you 'know' the personID you only give them access to their own records.
Post back if you need more help.

Arno R
Jan 16 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Russell | last post by:
Morning, I have been having trouble with a my embedded user control not being able to see the view state that I set in its parent page. I have done a test with the following and I still cant...
1
by: Maruthi | last post by:
Hi, I just wanted to discuss about the wierd behavior of placeholder control. Let me explain the scenario first. We are building an online loan origination system using ASP.NET. On a web form we...
2
by: Brad | last post by:
I have an intranet app that has just started sporadically getting the following error "The viewstate is invalid for this page and might be corrupted." By sproadic I mean 3-4 times during the past...
2
by: Martin | last post by:
Hi, I want to create a number of ascx controls with edit and view modes. Previously I have put two panels in the ascx - one for view (with label subcontrols), and one for edit (with text box...
0
by: John Smith | last post by:
ASP.Net 2.0 / C# / IIS 6 I have 2 pages. The master page consists of a tabbed menu created using the Menu and MultiView controls. Something like this: ...
14
by: Rolf Welskes | last post by:
Hello, I have an ObjectDataSource which has as business-object a simple array of strings. No problem. I have an own (custom) control to which I give the DataSourceId and in the custom-control...
9
by: aaronluna | last post by:
Hi All, I was wondering if it is possible to easily convert an asp.net user control (.ascx) into an equivalent windows app. I plan on simply duplicating the user control in a c# windows app...
11
by: Brad Baker | last post by:
I'm building a small web application - I started out placing all my code in one file (config.aspx). As I continue to add code though it was becoming very unwieldy. After doing some searching...
1
by: =?Utf-8?B?SlA=?= | last post by:
I have a default.aspx page. Default.aspx has placeholders. ASCX user controls are loaded into these placeholders at Page_Load. Each user control has a MultiView, within that there are two views...
0
by: xpnet | last post by:
Hi, I am using Mutliview control, and want to move a user control from one view to another view based on user selection. I can do this by placing a "Placeholder" control in each views. Based on...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.