OPINION
A motion for clarification having been filed by plaintiffs, the prior opinion is withdrawn and the following is substituted.
Defendant brings an interlocutory appeal from the trial court’s denial of its motion to dismiss for failure to state a claim. This court accepted two issues for review. They are: (1) whether the trial court erred in considering matters outside the record in ruling on the motion to dismiss; and (2)
Facts and Proceedings Below
On March 7,1984, plaintiffs sued defendant, claiming damages by reason of the recording of a “Notice of Subrogation” on October 5, 1978. Defendant’s notice indicated it was entitled to be subrogated to the rights of the Internal Revenue Service because defendant had paid a federal tax lien asserted against plaintiffs’ property. Plaintiffs’ complaint also alleged damages by reason of defendant’s suit to foreclose the tax lien and the notice of lis pendens filed November 6, 1978. The prior litigation, in which this court denied defendant’s right to subrogation, is reported at
Defendant’s amended answer alleged, among other things, that plaintiffs’ claim was barred by the statute of limitations; defendant subsequently moved to dismiss the complaint. After a hearing, both parties filed memorandum of law. Plaintiffs argued that their cause of action had not accrued until the foreclosure suit terminated. Defendant argued that, because the counterclaims had been dismissed, plaintiffs’ cause of action had not been tolled. See King v. Lujan,
The trial court denied the motion on the ground that plaintiffs’ counterclaims to defendant’s foreclosure suit had tolled the statute of limitations. Alternatively, the trial court found that defendant was es-topped from asserting the statute. The trial court, however, certified issues for an interlocutory appeal. See NMSA 1978, § 39-3-4. The trial court also granted plaintiffs’ motion to amend their complaint. Discussion
On appeal, defendant first contends that the trial court erred in failing to dismiss the complaint because the face of the complaint showed the claim was barred. Plaintiffs argue that their complaint and defendant’s answer contained sufficient facts from which the trial court could have made its determination or, alternatively, that the trial court was entitled to take judicial notice of its own records. See NMSA 1978, Evid.R. 201 (Repl.Pamp.1983). Defendant contends the trial court erred in considering the record of the foreclosure suit because neither party had requested that the motion be treated as one for summary judgment, see Civ.P.Rule 12(b) (Repl.Pamp. 1980), and because defendant had objected to such treatment. See Emery v. University of New Mexico Medical Center,
On consideration of the arguments and the record on appeal, we conclude that we need not answer the first question certified. Plaintiffs’ contention that the trial court properly considered matters other than the pleadings in effect asks us to affirm the trial court as right for the wrong reason. See State v. Beachum,
In ruling on a motion to dismiss, all facts well-pleaded are accepted as true. Candelaria v. Robinson,
Plaintiffs argue that the complaint contained sufficient facts from which the trial court could infer that the statute had been tolled while the prior proceedings were pending. We disagree.
Plaintiffs’ complaint alleges a wrongful act in 1978, from which they first suffered damages later the same year. There are no allegations concerning the counterclaims. We need not decide whether the statute of limitations for slander of title suits in New Mexico is the three-year limitation
Alternatively, plaintiffs have argued that the trial court could properly take judicial notice of its records in an earlier case involving these parties. We recognize the court’s inherent power to judicially notice its own records without specifically approving the court’s procedure in this case. See Frost v. Markham,
Nevertheless, when matters outside the pleadings are presented to and not excluded by the court, the motion shall be treated as one for summary judgment. Transamerica Insurance Co. v. Sydow,
The trial court erred in its denial of defendant’s motion to dismiss plaintiffs’ claim. We reverse the trial court and remand with instructions for the trial court to grant defendant’s motion. Dismissal shall be without prejudice. No costs are awarded.
IT IS SO ORDERED.
