I
iamnu
I create a new Datasheet form from tlPB and get the "FIRST SQL VIEW".
I then select DirectoryID and from the Row Source, I get the "SECOND
SQL VIEW".
I then select DeptID and from the Row Source, I get the "THIRD SQL
VIEW".
DirectoryID and DeptID are both Combo Boxes.
Problem
I want only those DeptID's that are related to the DirectoryID that
has been entered in the Datasheet.
Can someone show me how this is done?
--------------------------------------------------------
FIRST SQL VIEW
SELECT tblPB.PBID, tblPB.DirectoryID, tblPB.DeptID
FROM tblPB;
SECOND SQL VIEW
SELECT zDirectories.DirectoryID, zDirectories.Directory
FROM zDirectories;
THIRD SQL VIEW
SELECT zDepartments.DeptID, zDepartments.DirectoryID,
zDepartments.DeptName
FROM zDepartments
ORDER BY zDepartments.DeptName;
--------------------------------------------------------
I then select DirectoryID and from the Row Source, I get the "SECOND
SQL VIEW".
I then select DeptID and from the Row Source, I get the "THIRD SQL
VIEW".
DirectoryID and DeptID are both Combo Boxes.
Problem
I want only those DeptID's that are related to the DirectoryID that
has been entered in the Datasheet.
Can someone show me how this is done?
--------------------------------------------------------
FIRST SQL VIEW
SELECT tblPB.PBID, tblPB.DirectoryID, tblPB.DeptID
FROM tblPB;
SECOND SQL VIEW
SELECT zDirectories.DirectoryID, zDirectories.Directory
FROM zDirectories;
THIRD SQL VIEW
SELECT zDepartments.DeptID, zDepartments.DirectoryID,
zDepartments.DeptName
FROM zDepartments
ORDER BY zDepartments.DeptName;
--------------------------------------------------------