D
David Hochhauser (DHeshMan
I have looked through the knowledge base and tried to do a cascade lookup but
I'm having difficulty. For simplicity I have genericized the names of my
items.
Table: Xs; Fields: X_ID, X_Y_ID, X_Z_ID
Table: Ys; Fields: Y_ID
Table: Zs; Fields: Z_ID, Z_Y_ID
Relationships: Ys one-to-many with Xs
Zs one-to-many with Xs
Ys one-to-many with Zs
Xs.X_Y_ID Row Source = SELECT Ys.Y_ID FROM Ys;
Xs.X_Z_ID Row Source = SELECT Zs.Z_ID FROM Zs;
Zs.Z_Y_ID Row Source = SELECT Ys.Y_ID FROM Ys;
I would like to be able to choose my Xs.X_Y_ID and then filter the list of
choices possible for my Xs.X_Z_ID based on the relationship between Ys and
Zs. So I tried the following Row Source for my Xs.X_Z_ID
SELECT Zs.Z_ID, Zs.Z_Y_ID FROM Zs WHERE (Zs.Z_Y_ID=[X_Y_ID]);
But this returned with an empty list instead of a filtered list.
I tried using Me.X_Y_ID instead of [X_Y_ID] but the "Me." was not recognized
when viewing the table.
Any help would be greatly appreciated.
Thanks
I'm having difficulty. For simplicity I have genericized the names of my
items.
Table: Xs; Fields: X_ID, X_Y_ID, X_Z_ID
Table: Ys; Fields: Y_ID
Table: Zs; Fields: Z_ID, Z_Y_ID
Relationships: Ys one-to-many with Xs
Zs one-to-many with Xs
Ys one-to-many with Zs
Xs.X_Y_ID Row Source = SELECT Ys.Y_ID FROM Ys;
Xs.X_Z_ID Row Source = SELECT Zs.Z_ID FROM Zs;
Zs.Z_Y_ID Row Source = SELECT Ys.Y_ID FROM Ys;
I would like to be able to choose my Xs.X_Y_ID and then filter the list of
choices possible for my Xs.X_Z_ID based on the relationship between Ys and
Zs. So I tried the following Row Source for my Xs.X_Z_ID
SELECT Zs.Z_ID, Zs.Z_Y_ID FROM Zs WHERE (Zs.Z_Y_ID=[X_Y_ID]);
But this returned with an empty list instead of a filtered list.
I tried using Me.X_Y_ID instead of [X_Y_ID] but the "Me." was not recognized
when viewing the table.
Any help would be greatly appreciated.
Thanks