I understand and sympathize with all of you. My daughter had a similiar experience from the time she was born until she was 9 months of age.
The problem-Lactose Intolerance. Certain children can not properly digest milk products. The baby/child gets gas pain and is unable to pass gas. I switched to soy milk formula (which can be found at Target) and I was able to begin sleeping through the night. My pediatrician recommend slowly reintroducing cow's milk at 3 years of age. Now, my daughter only has a problem if she eats cheese or consumes excess dairy products during the day. I hope this helps you.
Also, some children have a wheat allergy. Ask your child's physician.
An amusing book to read regarding this experience is called,
Operating Instructions: A Journal of My Son's First Year by Anne Lamott,
a brillant writer.