You have to be careful with this method to not unlock the user record. That's why I like my solution.
>
>Create a table with as many records as you will have users (or more, doesn't matter). Lock a record for each user.
>
>
>locate for rlock()
>if recno() > MAX_USERS
> ErrorMsg("You have reached the maximum number of users.")
> return
>endif
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer