Both are collections of rules and procedures but:
Code often means something such as a building code,for example the International Building Code (IBC 2003).
Standard means a document that provides a basis for accreditation (ANS/ISO/IEC 17025 or ISO/IEC 17020),registration (ISO 9001:2000),or certification (Certified Quality Manager).