Many2Many then one2many with filtered results help

jam

Registered User.
Local time
Today, 14:07
Joined
May 14, 2009
Messages
42
This may verge on queries rather than forms but HELP!!!!

OK I have the following tables.

Requirements
RequirementsID 1

Junction
AgentID oo
RequirementsID oo

Agent
AgentID 1 / 1

AgentEmployee
AgentEmpID oo

What I have is a query that looks up Requirements, Junction and Agent. This works perfectly. I have based a form on said query and this works great. The Agent is a subform as there can be many agents and I can select the agent fine and dandy. What I want to do is select the Agent then in the next drop down select an Agent Employee (these agencies have hundreds and sometimes thousands of people working for them). I don't seem able to do it.

This is what I have tried....
I made a field to pick up the AgentID from the subform in the main Requirements form. (AgentIDedit) This works fine.

I then made a query...
AgentID criteria = [Forms]![Requirementsform].[AgentIDedit].
Displaying AgentEmployee name

But this doesn't work. Tried using ID's of both Agent and AgentEmployee but that didn't work either. Any help would be appreciated...
Image4.jpg
 

Users who are viewing this thread

Back
Top Bottom