The Description property of an Error object contains the descriptive string associated with a particular error. You can read the Description property only if the error has occurred.
To determine the descriptive string associated with an error that hasn't occurred, use the Microsoft Access AccessError function. The AccessError function takes an error number as an argument and returns the descriptive string. For example, if you want to determine the descriptive string associated with error 3021, you might use the AccessError function as follows:
Debug.Print AccessError(3021)
Microsoft Access prints the descriptive string associated with error 3021, "No current record", to the Debug window.