我在访问中运行下面的查询,我需要从最终用户那里获取参数。使用以下查询。但是,当我不要求用户输入并将条件像这样 ( tblApplications.txtApplicant Like "*dac*"
) 放在查询中时,它会返回值,并且一旦我要求用户输入,它就会返回空白。
以下是查询:
SELECT
tblConstruction.txtConstructionNr AS [Constr-Nr] AS Amount,
tblApplications.txtFolder
FROM
tblApplications
LEFT JOIN tblConstruction
ON tblApplications.IDConstAppli = tblConstruction.IDConstr
WHERE
(((tblApplications.txtApplicant) Like "*" & [Please enter the applicant or parts thereof:] & "*") AND
((tblApplications.txtDecission) Like "open"))
ORDER BY
tblApplications.txtApplicant,
tblApplications.[txtKomm-Nr],
tblApplications.txtDecissionDat DESC;