S
Shane
I hoping somebody can tell me how to do this or that it is not possible
in Access.
I have table (tblIssues) which references two tables, one of clients
(tblclients) and the other a reference to Projects (tblProejcts).
Clients can have multiple projects but the issue is only associated
with one client and one of their projects.
IN the tblIssues table I have a field called ClientDBID (foreign key to
tblClients) and another field called ProjectDBID (foregin key to
tblProjects). Both fields use a lookup query to select the client and
the project. This works fine as long as you know which projects belong
to which clients.
To reduce possible errors where the wrong project is selected for the
choosen Client, I want to be able to have the ProjectDBID field lookup
query automatically list only the valid projects for the choosen Client
i.e. use the value of the ClientDBID field as the filter criteria for
ProjectDBID
In the ProjectDBID field lookup query, I have tried the following
enteries in the critieria field in the query designer. It accepts the
syntax but doesn't work as expected.
[tables]![tblIssues]![ClientDBID] and [tblIssues]![ClientDBID]
The resulting SQL gives you the basic flavour of the lookup query
SELECT tblProjects.ProjectDBID, tblProjects.ProjectName
FROM tblProjects
WHERE (((tblProjects.ClientDBID)=[tblIssues]![ClientDBID]));
So what am I missing here?
Your help greatly appreciated
in Access.
I have table (tblIssues) which references two tables, one of clients
(tblclients) and the other a reference to Projects (tblProejcts).
Clients can have multiple projects but the issue is only associated
with one client and one of their projects.
IN the tblIssues table I have a field called ClientDBID (foreign key to
tblClients) and another field called ProjectDBID (foregin key to
tblProjects). Both fields use a lookup query to select the client and
the project. This works fine as long as you know which projects belong
to which clients.
To reduce possible errors where the wrong project is selected for the
choosen Client, I want to be able to have the ProjectDBID field lookup
query automatically list only the valid projects for the choosen Client
i.e. use the value of the ClientDBID field as the filter criteria for
ProjectDBID
In the ProjectDBID field lookup query, I have tried the following
enteries in the critieria field in the query designer. It accepts the
syntax but doesn't work as expected.
[tables]![tblIssues]![ClientDBID] and [tblIssues]![ClientDBID]
The resulting SQL gives you the basic flavour of the lookup query
SELECT tblProjects.ProjectDBID, tblProjects.ProjectName
FROM tblProjects
WHERE (((tblProjects.ClientDBID)=[tblIssues]![ClientDBID]));
So what am I missing here?
Your help greatly appreciated