G
Guest
I have a form that has a combo box of valid dates. the user selects a data,
then clicks on a button, which opens another form in add mode. the new form
has a combo box that is populated by selecting data from a table. The date
selected on the first form is used in the "where" clause of the select
statement. The statement (below) has 2 elements in the "where" clause, the
one associated with the field CACRProdLine is working, the one using the
QBF_FY field is not.
"SELECT Project.ProjectName, Project.ProjectWBSID FROM Project WHERE
(((Project.ProjectFY)=forms![qbf-add-CACR-form-f]!QBF_FY) And
((Project.ProjectDirectorate)=forms!AddCACRForm!CACRPRodLine)) Or
(((Project.ProjectDirectorate)=forms!AddCACRForm!CACRPRodLine) And
((forms![qbf-add-CACR-form-f]!QBF_FY) Is Null)) ORDER BY Project.ProjectName;
Any suggestions would be appreciated.
Thax Dan
then clicks on a button, which opens another form in add mode. the new form
has a combo box that is populated by selecting data from a table. The date
selected on the first form is used in the "where" clause of the select
statement. The statement (below) has 2 elements in the "where" clause, the
one associated with the field CACRProdLine is working, the one using the
QBF_FY field is not.
"SELECT Project.ProjectName, Project.ProjectWBSID FROM Project WHERE
(((Project.ProjectFY)=forms![qbf-add-CACR-form-f]!QBF_FY) And
((Project.ProjectDirectorate)=forms!AddCACRForm!CACRPRodLine)) Or
(((Project.ProjectDirectorate)=forms!AddCACRForm!CACRPRodLine) And
((forms![qbf-add-CACR-form-f]!QBF_FY) Is Null)) ORDER BY Project.ProjectName;
Any suggestions would be appreciated.
Thax Dan