Query help

  • Thread starter Thread starter COMPSCI610
  • Start date Start date
C

COMPSCI610

How do you get this to terminate on a null value or empty value.

SELECT STORPOGTRASH.[SPOG#], STORPOGTRASH.[POGSTR#]
FROM STORPOGTRASH
WHERE (((STORPOGTRASH.[SPOG#])=[PLEASE ENTER A PLANOGRAM NUMBER]));

Any help would be greatly appreciated
 
Hi,

Instead of the build in parameter feature, use your own parameter form
with a text box for entering the information. On that form you can have a
button. When the user clicks the button check check if the text box is null
or a zero-length string. If it is, complain to the user, otherwise open up
the query or report or whatever. Change the query to some thing like the
following so it uses the text box from the form.

SELECT STORPOGTRASH.[SPOG#], STORPOGTRASH.[POGSTR#]
FROM STORPOGTRASH
WHERE
(((STORPOGTRASH.[SPOG#])=Forms![frmMyParameterForm]![txtParameterField]));

Clifford Bass
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top