Accessless
New member
- Local time
- Today, 11:35
- Joined
- Jun 25, 2005
- Messages
- 8
Hi, in a previous post, I was helped to design a form that retrieves Client info from a table using a query.
What do I need to add so if a Number that doesn't exist is entered, the query loops back Stating "Not Found - Enter Client Numbet" or something similar.
Thanks
Code:
SELECT [MASTER KEY LIST].[Key No], [MASTER KEY LIST].[Client Name], [MASTER KEY LIST].Address, [MASTER KEY LIST].Comments, [MASTER KEY LIST].[M-1], [MASTER KEY LIST].[M-2]
FROM [MASTER KEY LIST]
WHERE ((([MASTER KEY LIST].[Key No]) Like [Enter Client Number] & "-*"));
What do I need to add so if a Number that doesn't exist is entered, the query loops back Stating "Not Found - Enter Client Numbet" or something similar.
Thanks