1. An image forming apparatus wherein a toner image is electrophotographically formed on a record sheet based on original image information and wherein a plurality of kinds of preliminary processing can be performed by the apparatus before switching to an image formation enabled state from an image formation disabled state caused by one of a plurality of kinds of trouble in the apparatus and wherein the preliminary processing is performed after the trouble has been resolved, comprising: a detecting device for detecting the kind of trouble causing said image formation disabled state of the image forming apparatus; a memory for storing the kind of trouble detected by said detecting device; and a preliminary processing determining portion for determining the kind of preliminary processing to be performed based on the kind of the trouble stored in said memory.