I am running into a problem where the query gives no results when I have [enter budget reference] in the Criteria but if I hard code the same information into the Criteria line the results are produced. I'm trying to create a pop-up box so the user doesn't have to go into the query itself to change variables. All the other criteria pieces of the query work fine. Anyone understand why it's doing this and how to fix it? Thanks.
Here's the sql code...
SELECT GL_GL_DTL.ACCTG_PRD, GL_GL_DTL.ACCTG_FISC_YR, GL_GL_DTL.GL_GRANT_PGM_ELEM_CD, GL_GL_DTL.BUDGET_REF
FROM GL_GL_DTL
WHERE (((GL_GL_DTL.ACCTG_PRD)=[enter accting prd]) AND ((GL_GL_DTL.ACCTG_FISC_YR)=[enter yr]) AND ((GL_GL_DTL.GL_GRANT_PGM_ELEM_CD)=[enter program #]) AND ((GL_GL_DTL.BUDGET_REF)=[enter budget reference]));
Here's the sql code...
SELECT GL_GL_DTL.ACCTG_PRD, GL_GL_DTL.ACCTG_FISC_YR, GL_GL_DTL.GL_GRANT_PGM_ELEM_CD, GL_GL_DTL.BUDGET_REF
FROM GL_GL_DTL
WHERE (((GL_GL_DTL.ACCTG_PRD)=[enter accting prd]) AND ((GL_GL_DTL.ACCTG_FISC_YR)=[enter yr]) AND ((GL_GL_DTL.GL_GRANT_PGM_ELEM_CD)=[enter program #]) AND ((GL_GL_DTL.BUDGET_REF)=[enter budget reference]));