H
hotrod1952 via AccessMonster.com
Newbie:
I have the following code for a query:
PARAMETERS [Enter Task Number] Text;
SELECT Task.TaskID, WODef.WODefID
FROM (Task INNER JOIN WODefTask ON Task.TaskNo = WODefTask.TaskNo) INNER JOIN
WODef ON WODefTask.WODefNo = WODef.WODefNo
WHERE (((Task.TaskID)=[Enter Task Number]))
ORDER BY Task.TaskID;
I am using a command button on a form to run this query. What I would like is
a msgbox to pop-up stating no results when the query returns no results.
Should that be done in the form or in the query?
I have the following code for a query:
PARAMETERS [Enter Task Number] Text;
SELECT Task.TaskID, WODef.WODefID
FROM (Task INNER JOIN WODefTask ON Task.TaskNo = WODefTask.TaskNo) INNER JOIN
WODef ON WODefTask.WODefNo = WODef.WODefNo
WHERE (((Task.TaskID)=[Enter Task Number]))
ORDER BY Task.TaskID;
I am using a command button on a form to run this query. What I would like is
a msgbox to pop-up stating no results when the query returns no results.
Should that be done in the form or in the query?