Group:  Microsoft Access ยป microsoft.public.access.queries
Thread: Query help

Geek News

Query help
COMPSCI610 12/30/2008 8:00:07 PM
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
RE: Query help
Clifford Bass 12/31/2008 12:14:01 AM
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

"COMPSCI610" wrote:

[Quoted Text]
> 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

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net