UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Display 'not found' in query result?    
 
   
kmart320
post Oct 21 2004, 10:41 AM
Post #1

New Member
Posts: 19
From: TX - USA



Hopefully this is an easy question.

I have a query that looks up a part number entered in by users in one table and grabs the part description from another table. This query is used to produce a report. If the user enters a part number that is not valid or a description is not found, is there a way to display a 'not found' message in the part description field?

I know a combo field might be a better option to ensure accuracy, but we're talking over 6000 parts for a combo box of which 80% are rarely used, thus making it easier to just enter the part number in manually.

Thanks!

kmart320
Go to the top of the page
 
+
MrDriftwood
post Oct 21 2004, 11:39 AM
Post #2

UtterAccess Enthusiast
Posts: 82



Can you give a few more details? How do the users enter in the part number they are looking for? Via a control on a form or directly in the query design view?
Go to the top of the page
 
+
kmart320
post Oct 21 2004, 11:58 AM
Post #3

New Member
Posts: 19
From: TX - USA



Users enter part number via a text box on a form
Go to the top of the page
 
+
MrDriftwood
post Oct 21 2004, 01:14 PM
Post #4

UtterAccess Enthusiast
Posts: 82



And if a part is found you display the query results in a form or just the data sheet view?
Go to the top of the page
 
+
kmart320
post Oct 21 2004, 03:22 PM
Post #5

New Member
Posts: 19
From: TX - USA



just the datasheet view. a normal query wouldn't return a result,and I want them to be able to know which ones are incorrect.
Go to the top of the page
 
+
MrDriftwood
post Oct 22 2004, 10:24 AM
Post #6

UtterAccess Enthusiast
Posts: 82



Since the query is used in a report have you thought about using the On No Data event of the report? That way if the report has no data to display you could send the user a message that there were no matches to their entered part number.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 26th May 2013 - 12:54 AM