A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Lookup query problem



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2009, 02:50 PM posted to microsoft.public.access.tablesdbdesign
vsiat
external usenet poster
 
Posts: 1
Default Lookup query problem

I have a Projects database with the following tables (among others):
* Project (ID, ProjectName, ...)
** ProjectAssignments (ProjectID, EmployeeID, ...)
** ProjectStatusReports (ProjectID, ReportDate, ReportedBy, Status, ...)

[ProjectAssignments] contains the employees a project is assigned to
[ProjectStatusReports] contains status reports for a specific project

My question is: how can I limit the contents of the [ReportedBy] lookup list
only to those employees assigned to the specific project?
A lookup query I created returns all the employess assigned to any project
in the database, not only the ones related to the current project and the
problem seems to be that I cannot reference somehow the current record in the
table [ProjectStatusReports]
  #2  
Old June 23rd, 2009, 04:52 PM posted to microsoft.public.access.tablesdbdesign
Ken Snell [MVP]
external usenet poster
 
Posts: 279
Default Lookup query problem

You need to do this in a form, not in a table.

See http://www.mvps.org/access/forms/frm0028.htm

--

Ken Snell
MS ACCESS MVP
http://www.accessmvp.com/KDSnell/


"vsiat" wrote in message
...
I have a Projects database with the following tables (among others):
* Project (ID, ProjectName, ...)
** ProjectAssignments (ProjectID, EmployeeID, ...)
** ProjectStatusReports (ProjectID, ReportDate, ReportedBy, Status, ...)

[ProjectAssignments] contains the employees a project is assigned to
[ProjectStatusReports] contains status reports for a specific project

My question is: how can I limit the contents of the [ReportedBy] lookup
list
only to those employees assigned to the specific project?
A lookup query I created returns all the employess assigned to any project
in the database, not only the ones related to the current project and the
problem seems to be that I cannot reference somehow the current record in
the
table [ProjectStatusReports]



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.