Designs having the parameters of projective and affine spaces