If 0 is entered as the planogram number or if the input box is left blank, I would like the query to stop running. I have this set up in a Macro that repeats over and over. This is why I need it to stop once invalid data is inputed.
"BruceM" wrote:
[Quoted Text] > First, release the cap lock key. Use of all caps is taken as shouting, and > if regarded as rude. > > Second, explain what you mean by "terminate", and where the 0 or null string > will occur. BTW, do you mean an empty string, a null value, or what > exactly? > > "COMPSCI610" <COMPSCI610[ at ]discussions.microsoft.com> wrote in message > news:E9582D1F-B0BC-4376-8BF9-D000FC6DC1C7[ at ]microsoft.com... > > WHAT DO I NEED TO DO WITH THIS QUERY TO GET IT TO TERMINATE ON A NULL > > STRING > > OR 0? > > > > SELECT STORPOGTRASH.[SPOG#], STORPOGTRASH.[POGSTR#] > > FROM STORPOGTRASH > > WHERE (((STORPOGTRASH.[SPOG#])=[PLEASE ENTER A PLANOGRAM NUMBER])); > >
|