473,539 Members | 9,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MyProjects

24 New Member
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 1494
TheSmileyCoder
2,322 Recognized Expert Moderator Top Contributor
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
Vish Narayan
24 New Member
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
2572
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: OSTDLL, Configuration: Debug Win32 ------ Compiling... StdAfx.cpp
0
774
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: OSTDLL, Configuration: Debug Win32 ------ Compiling... StdAfx.cpp
3
1286
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 I consulted the faq for some guidance. http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.21 shows how to do reference counting so...
3
2950
by: fastwings | last post by:
mm the code //////makemenu.h//// class menu { public: int op; pmenu(int op,int sub = 0) { switch op {
1
3980
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 I try build I get: Why? Help. :--------------------Configuration: av - Win32 Debug-------------------- Compiling...
2
3364
by: teddybyte | last post by:
my script below is: #include "stdafx.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
1
6829
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 following error message: --------------------Configuration: <Default>-------------------- C:\Program Files\Xinox...
3
3246
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 different colors In C++ I can represent the neighboring information using a 2D vector of booleans. For example, consider the following 2D...
1
2996
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
4158
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' : is not a class or namespace name D:\Program Files\visual studio 6.0\MSDev98\MyProjects\GLEnabledView\GLNew.cpp(164) : error C2061: syntax error :...
0
7311
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7538
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7297
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7655
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5835
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5228
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4864
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3361
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.