473,406 Members | 2,816 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,406 software developers and data experts.

MyProjects

I have developed an application in Access 2007 where users log in using their password. When a Project is received it is assigned to one of the user who also receives an email alert. The user then clicks the "MyProjects" combo box and selects his userid to view his new projects. But this combo displays all other users too and this would enable him to see what has been assigned to other users too.I require that the individual users only view the Projects that are assigned to them and not what the others have been assigned. This is a multi user database. Is there anyway I could connect the password to the "MyProjects" view?
Apr 27 '12 #1
2 1490
TheSmileyCoder
2,322 Expert Mod 2GB
I presume you have a table somewhere with usernames and passwords? Then you hopefully also have some sort of unique primary key on the table. For now I will just assume you have called it PK_User, and that your projects table has a related foreign key, FK_User.

In your login procedure you should store the userID in the tempvars collection, after having verified their password.
Expand|Select|Wrap|Line Numbers
  1. Tempvars!UserID=PK_User
Then your combobox recordsource could look like:
Expand|Select|Wrap|Line Numbers
  1. SELECT * FROM tbl_Projects WHERE FK_User=TempVars!UserID
Apr 27 '12 #2
I managed to ensure that the users see only the Projects assigned to them. However to expand on the problem, I have a situation where various users will be required to input some data for their respective projects. How to ensure that the user only works on the Projects that were assigned to him. If I include a combo where he will be asked to select his id, this would become very cumbersome for the users or even if I force a log in everytime before data entry. Is there a better way to handle this. I am not clear how to manage this in a multi user environment.
Apr 30 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
0
by: gerd | last post by:
Hello, I want to port an MFC Application from Visual Studio 6 MFC application to Visual C++ 2005 express edition beta. While building i get following error: ------ Build started: Project:...
3
by: Loran Hayden | last post by:
Hi Folks: I've been working on my set theory project which I mentioned in a prior note asking about design patterns. Since I am creating templates and I'll need to do some reference counting, so...
3
by: fastwings | last post by:
mm the code //////makemenu.h//// class menu { public: int op; pmenu(int op,int sub = 0) { switch op {
1
by: MK | last post by:
I need div two big int. I use this lib: https://sourceforge.net/projects/cpp-bigint/ I create simple project and include two file bigint.h and bigint.cpp (Precompiled headers is not using) When...
2
by: teddybyte | last post by:
my script below is: #include "stdafx.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, ...
1
by: phjones | last post by:
This is not a class project.The program below is to display mortgage interest paid for each payment over the term of the loan and loan balance.It is program using array. However, I am receiving the...
3
by: mersinli | last post by:
Hello; I will use standard library vectors and implement simple map coloring algorithm. The goal of a map coloring problem is to color a map so that regions sharing a common border have...
1
by: mersinli | last post by:
Hi, I have got seven error and I dont find why compiler find error.. //commission class definition #ifndef COMMISSION_H #define COMMISSION_H #include <string> using std::string;
5
by: yashu0209 | last post by:
I have an error occurring when i try to compile the program and the error is: D:\Program Files\visual studio 6.0\MSDev98\MyProjects\GLEnabledView\GLNew.cpp(164) : error C2653: 'CGLEnabledView' :...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.