Instead of checking for a username, mark the UserName field in the table as being UNIQUE. This will cause the DB to error out of a transaction that attempts to insert the same UserName into the table multiple times. Then catch that.
Jeff M. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode