You can use "return" to exit a function, much like "Exit Function/Sub" in VB. Dave http://java.dbmdata.com