15 month old not sleeping in crib

Ann

My son has been a great sleeper until recently. He had a cold 3 weeks ago then had shots at his 15 month well visit about two weeks ago. Since the cold he will only stay asleep in my bed. Whenever I move him to his crib he wakes up screaming immediately or about and hour or two hours later. Has anyone experienced this?