Co-signed mortgage

I co signed my daughters mortgage and on the deed for a tax deduction and was the only reason I co-signed I  was told from an accountant since I’m on both I can take the deduction even though I’m not making the payments. After researching I’m not really sure I can ?