Yes, there is an oath that attorneys must take when they are sworn into the bar. It is different in every State.
I was unable to locate the exact wording of the oath in New Mexico, there may not be any official wording. But you can see in this link from the New Mexico State Bar Association, that attorneys do take an oath ... " to uphold the law and abide by the Rules of Professional Conduct promulgated by the Supreme Court of New Mexico." That may be all there is to it. See the language here: http://www.nmbar.org/public/publicpubs/complaints.html
When attorneys are sworn in, a Supreme Court Justice usually administers the oath. In this case, it is probably the word choice of that particular justice, but the idea is the same- uphold the Constitution and Ethics Code.
Here is copy of the New Mexico Ethic Code for attorneys, called the Rules of Professional Conduct: http://www.law.cornell.edu/ethics/nm/code/NM_CODE.htm
DISCLAIMER: Answers from Experts on JustAnswer are not substitutes for the advice of an attorney. JustAnswer is a public forum and questions and responses are not private or confidential or protected by the attorney-client privilege. The Expert above is not your attorney, and the response above is not legal advice. You should not read this response to propose specific action or address specific circumstances, but only to give you a sense of general principles of law that might affect the situation you describe. Application of these general principles to particular circumstances must be done by a lawyer who has spoken with you in confidence, learned all relevant information, and explored various options. Before acting on these general principles, you should hire a lawyer licensed to practice law in the jurisdiction to which your question pertains.
The responses above are from individual Experts, not JustAnswer. The site and services are provided “as is”. To view the verified credential of an Expert, click on the “Verified” symbol in the Expert’s profile. This site is not for emergency questions which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service (last updated February 8, 2012).