version 6.0
DELETE USER (UserID)
Parameter | Type | Description | |
UserID | Number | ID number of user to delete |
Description
The DELETE USER command deletes the user whose unique user ID number you pass in userID. You must pass a valid user ID number returned by the command GET USER LIST.
If the user account does not exist or has already been deleted, the error -9979 is generated. You can catch this error with an error-handling method installed using ON ERR CALL.
Deleted user names no longer appear in the Password window displayed when the database is open or when you call CHANGE ACCESS. However, in order to maintain unique user ID numbers, the user account is kept in the password system. Deleted user names are displayed in green in the Design environment Passwords window.
See Also
GET USER LIST, GET USER PROPERTIES, Is user deleted, Set user properties.
Error Handling
If you do not have the proper access privileges for calling DELETE USER or if the Password system is already accessed by another process, an access privilege error is generated. You can catch this error with an error-handling method installed using ON ERR CALL.