Make sure that you get both of the single quotes in - theres one after the equals (before the double quote) and one attaced on the end (between double quotes) - copy and paste this line
DoCmd.OpenReport "ChildDetails", acViewPreview, , "Childs Name = '" & Forms![Child Details Query]![Childs...