This error occurs when clicking the Histogram tool to create a histogram of a raster layer:
"An invalid field name was used"
A histogram of data symbolized using a joined field is being created. Joined fields are not supported by the Histogram tool with ArcGIS 8.1.
Use a field that has not been joined to the raster to symbolize your data, then click the Histogram tool.