C
cporter
I have a form tied to the query below. If the query doesn't find the
workorder number entered the form still opens and people try to use it.
I need to make it so an error message pops up if the workorder isn't
valid. What are my options?
SELECT tblPMWO.wono, tblPMWO.MACHID, tblPMWO.Action, tblPMWO.Request1,
tblPMWO.DayDown, tblPMWO.TimeDown, tblPMWO.Dayup, tblPMWO.TimeUp,
tblPMWO.THD, tblPMWO.SUBSYS, tblPMWO.EMPLOYEE, tblPMWO.COMMENT1,
tblPMWO.COMMENT2
FROM tblPMWO
WHERE (((tblPMWO.wono)=[workorder number]));
workorder number entered the form still opens and people try to use it.
I need to make it so an error message pops up if the workorder isn't
valid. What are my options?
SELECT tblPMWO.wono, tblPMWO.MACHID, tblPMWO.Action, tblPMWO.Request1,
tblPMWO.DayDown, tblPMWO.TimeDown, tblPMWO.Dayup, tblPMWO.TimeUp,
tblPMWO.THD, tblPMWO.SUBSYS, tblPMWO.EMPLOYEE, tblPMWO.COMMENT1,
tblPMWO.COMMENT2
FROM tblPMWO
WHERE (((tblPMWO.wono)=[workorder number]));