Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Don't allow blank find field

Status
Not open for further replies.

ckier

Technical User
Jan 1, 2008
3
0
0
US
I have a script that shows a dialog, performs a find based on a users input into the dialog, prints the selected data, and then deletes it from the database. Everything works fine unless a user inadvertantly enters nothing into the find dialog and pushes enter. This obviously causes filemaker to find everythign in the database, print it, and delete whcih present obvious problems. How can I prevent a empty find field.
 
I'd say in the dialog let the user know what is about to happen and put a cancel button on the dialog followed by a

IF[ Get ( LastError )= 2 ]
do exactly what you want it to do.
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top