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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Depandable dropdown choices?



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2004, 11:09 AM
Harmannus
external usenet poster
 
Posts: n/a
Default Depandable dropdown choices?

Hallo,

How can i make a dropdown dependable based on a related subtable (set in
another table)?

So:

I have

tblOrganization
- OrganizationID
- OrganizationName
- Address
etc.

tblOrganizationEmployee
- EmployeeID
- OrganizationID
- CategoryID
- EmployeeName
- Tel
etc.

tblProjectOrganizationID
- ProjectOrganizationID
- OrganizationID
- Projectname

tblProject
- ProjectID
- ProjectOrganizationID
- EmployeeID

How can i limit the choices of EmployeeID based on tblOrganizationID.
Through tblProjectOrganization i know the Organization so it would be nice
if the dropdown only showed the Employees of the Organization defined in
tblProjectOrganization.

Thanx for any help!

Regards,
Harmannus


  #2  
Old June 7th, 2004, 11:41 AM
Michel Walsh
external usenet poster
 
Posts: n/a
Default Depandable dropdown choices?

Hi,


Though a join (in a query, assign the query as row source).

SELECT a.EmployeeID

FROM (Projet As a INNER JOIN ProjectOrganizationID As b
ON a.ProjectOrganizationID=b.ProjectOrganizationID)
INNER JOIN Organization As c
ON b.OrganisationID=c.OrganisationID

WHERE c.OrganizationName= 'Acme inc'




You may find it easier to use the query designer graphical possibilities. It
is just a manner to "draw" lines across the related tables.



Hoping it may help,
Vanderghast, Access MVP


"Harmannus" wrote in message
...
Hallo,

How can i make a dropdown dependable based on a related subtable (set in
another table)?

So:

I have

tblOrganization
- OrganizationID
- OrganizationName
- Address
etc.

tblOrganizationEmployee
- EmployeeID
- OrganizationID
- CategoryID
- EmployeeName
- Tel
etc.

tblProjectOrganizationID
- ProjectOrganizationID
- OrganizationID
- Projectname

tblProject
- ProjectID
- ProjectOrganizationID
- EmployeeID

How can i limit the choices of EmployeeID based on tblOrganizationID.
Through tblProjectOrganization i know the Organization so it would be nice
if the dropdown only showed the Employees of the Organization defined in
tblProjectOrganization.

Thanx for any help!

Regards,
Harmannus




  #3  
Old June 7th, 2004, 12:43 PM
Harmannus
external usenet poster
 
Posts: n/a
Default Depandable dropdown choices?

Hallo,

I will give it a try! Thanx for the reply!

Regards,
Harmannus


"Michel Walsh" vanderghast@VirusAreFunnierThanSpam wrote in message
...
Hi,


Though a join (in a query, assign the query as row source).

SELECT a.EmployeeID

FROM (Projet As a INNER JOIN ProjectOrganizationID As b
ON a.ProjectOrganizationID=b.ProjectOrganizationID)
INNER JOIN Organization As c
ON b.OrganisationID=c.OrganisationID

WHERE c.OrganizationName= 'Acme inc'




You may find it easier to use the query designer graphical possibilities.

It
is just a manner to "draw" lines across the related tables.



Hoping it may help,
Vanderghast, Access MVP


"Harmannus" wrote in message
...
Hallo,

How can i make a dropdown dependable based on a related subtable (set in
another table)?

So:

I have

tblOrganization
- OrganizationID
- OrganizationName
- Address
etc.

tblOrganizationEmployee
- EmployeeID
- OrganizationID
- CategoryID
- EmployeeName
- Tel
etc.

tblProjectOrganizationID
- ProjectOrganizationID
- OrganizationID
- Projectname

tblProject
- ProjectID
- ProjectOrganizationID
- EmployeeID

How can i limit the choices of EmployeeID based on tblOrganizationID.
Through tblProjectOrganization i know the Organization so it would be

nice
if the dropdown only showed the Employees of the Organization defined in
tblProjectOrganization.

Thanx for any help!

Regards,
Harmannus






 




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 04:56 AM.


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