We find necessary and sufficient conditions for the differential equation u((n))(t) = Au(t) + f(t), t is an element of R to have a unique almost periodic solution. Some applications are also given.