The relation of Kohn-Sham (KS) orbital energies to ionization energies and electron affinities is different in molecules and solids. In molecules, the local density approximation (LDA) and generalized gradient approximations (GGA) approximate the exact ionization energy (I) and affinity (A) rather well with self-consistently calculated (total energy based) I and A, respectively. The highest occupied molecular orbital (HOMO) energy and lowest unoccupied molecular orbital (LUMO) energy, however, differ significantly (by typically 4-6 eV) from these quantities, ϵ(mol)>-I(mol)≈-I(mol), ϵ(mol)<-A(mol)≈-A(mol). In solids, these relations are very different, due to two effects. The (almost) infinite extent of a solid makes the difference of orbital energies and (L)DFA calculated ionization energy and affinity disappear: in the solid state limit, ϵ(solid)=-I(solid) and ϵ(solid)=-A(solid). Slater's relation ∂E/∂n = ϵ for local density functional approximations (LDFAs) [and Hartree-Fock (HF) and hybrids] is useful to prove these relations. The equality of LDFA orbital energies and LDFA calculated -I and -A in solids does not mean that they are good approximations to the exact quantities. The LDFA total energies of the ions with a delocalized charge are too low, hence I(solid) < I and A(solid) > A, due to the local-approximation error, also denoted delocalization error, of LDFAs in extended systems. These errors combine to make the LDFA orbital energy band gap considerably smaller than the exact fundamental gap, ϵ(solid)-ϵ(solid)=I(solid)-A(solid)