S. Brooks Posted July 13, 2006 Posted July 13, 2006 Hello I have made a database for an architecture practice's library. It only has one table and you simply click on the kind of book your looking for (e.g. windows/doors/stairs) and a list of all the related books shows. So it's a series of buttons and scripts. Pretty simple. It seems to be running smoothly but have come across two things that could make it easier to use. 1. If nothing is entered in the search fields I want an error message to appear giving the options to modify their find as opposed to just showing all the results. 2. If a search returns no results I want an error message to appear giving the options to modify their find as opposed to just showing all the results again. I've dabbled with some scripts and attached them to the find button with limited success so any help anyone can give would be greatly appreciated. Thanks!
dkemme Posted July 16, 2006 Posted July 16, 2006 Prior to perform find, try a loop, exit loop if ( search_field not = "" ), showmessage... , end loop, perform find. To catch the no record found, prior to the perform find loop ... Set Error Capture (On) Perform find exit loop If Get (found count) > 0 Show message "try again" end loop
Recommended Posts
This topic is 7053 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now