Some examples include antacids, didanosine solution, quinapril, vitamins and
minerals, dairy products (such as milk, yogurt), and
calcium-enriched juice. These products bind with doxycycline, which prevents your body from fully absorbing the drug.
So, it is best to take the medication at least 2 hours after you have consumed dairy products, and it is best to not consume dairy products for at least 2 hours after taking the medication.
That said, take the medication as directed by the doctor.