Plaintiffs, Raskas Foods, Inc. and Nauvoo Cheese Company, brought a declaratory judgment action against defendants, Southwest Whey, Inc. and Nutrition 101, Inc. Defendants appeal from the trial court’s grant of summary judgment in favor of Nauvoo Cheese Company. 1 We affirm. 2
The facts, as gleaned from the record, established that defendants, Nutrition 101, Inc. (Nutrition) and Southwest Whey, Inc. *48 (Southwest), formed a joint venture to obtain whey, a by-product of cheese manufacturing, from dames to market as feed for hogs. Nutrition was an Illinois corporation with its principal place of business in Illinois. Southwest was a New Mexico corporation with its principal place of business in New Mexico.
Plaintiffs, Raskas Foods, Inc. (Raskas) and Nauvoo Cheese Company (Nauvoo), were affiliated corporations with common ownership. Raskas and Nauvoo were both Missouri corporations, maintaining corporate offices in St. Louis County. In 1989, Southwest entered into a written contract with Raskas for the removal of whey from Raskas’s plant in the City of St. Louis. A subsequent written modification required the removal of all whey from that plant. Also in 1989, defendants orally agreed to remove whey from Nauvoo’s Illinois plant. In 1990, this agreement was modified, giving defendants the right to remove whey as long as Nauvoo produced it and no new technologies affected its value.
In June 1992, Raskas and Nauvoo terminated their agreements with defendants and sent termination letters. Defendants brought an action in St. Louis County against Raskas and Nauvoo for breach of contract and against Nauvoo for fraudulent misrepresentation. They subsequently dismissed the action without prejudice.
Raskas and Nauvoo then brought the present action in St. Louis County against defendants. The petition was titled “Petition for Declaratory Relief.” Count I was for “Breach of the Raskas Contract” and alleged that defendants materially breached the amended agreement by failing to remove all the whey from the Raskas facility in the City of St. Louis and by disposing of whey in Franklin County in violation of the law. Raskas sought a declaration that defendants’ breach of the agreement justified Raskas’s termination of the agreement. Count II was labeled “Existence and/or Nature of any Nauvoo Contract” and alleged that, in addition to the aforementioned breach of the agreements, the oral agreement with Nauvoo was not only terminable at will because its terms were indefinite as to duration, but also unenforceable because it was executory and violated the statute of frauds. Nauvoo sought a declaration that its termination of the oral agreement was justified.
Defendants filed motions to dismiss the action on the basis that the petition failed to state a claim upon which relief can be granted and that venue was improper in St. Louis County. The trial court denied the motions. Nauvoo then filed a motion for summary judgment which the trial court granted. This appeal ensues.
We first address the denial of defendants’ motions to dismiss Nauvoo’s action. 3 Defendants argue that the trial court should have granted their motions to dismiss for two reasons: (1) St. Louis County was not the proper venue; and (2) Nuavoo’s petition failed to state a cause of action.
We first consider whether Nauvoo’s petition stated a cause of action for declaratory relief. Under Section 527.010, RSMo (1994) of the Declaratory Judgment Act, trial courts have the power “to declare rights, status, and other legal relations whether or not further relief is or could be claimed.” The trial court is afforded wide discretion in administering the Act.
Preferred Physicians Mut Management. Group, Inc. v. Preferred Physicians Mut. Risk Retention Group,
In the instant action, Nauvoo sought a declaration of the existence of a contract with defendants as well as a declaration of its rights and duties under the contract. Nau-voo pleaded a contract, its interest therein, a dispute as to its validity, construction, and effect and prayed for a declaration of the
*49
parties’ rights thereunder. These allegations were sufficient to state a cause of action for declaratory relief.
See Mercantile Trust Co. v. Chase Hotel, Inc.,
The next question is whether venue was proper in St. Louis County. Section 508.040, RSMo (1994) states, “Suits against corporations shall be commenced either in the county where the cause of action accrued, ... or in any county where such corporations shall have or usually keep an office or agent for the transaction of their usual and customary business.” Defendants argue that because the action, as pleaded, was actually for breach of contract, the proper venue was the place of the breach, not St. Louis County. Nauvoo counters that because the petition pleaded a declaratory judgment action, the proper venue was St. Louis County, where the agreement was negotiated and formed.
Where venue is an issue, the plaintiff carries the burden of proof to show an honest belief that there is a justiciable claim against a resident party.
Goff
v.
Schlegel,
The trial court did not err in refusing to dismiss Nauvoo’s declaratory judgment action. Defendants’ first points are denied.
In their second points, defendants assert the trial court erred in granting summary judgment in favor of Nauvoo. The trial court granted summary judgment on various grounds, one of which was that the oral agreement between Nauvoo and defendants was “indefinite in term, and terminable at will.” The trial court applied Illinois law. 5
*50
There is no dispute that the terms of the agreement between Nauvoo and defendants provided that it would last “so long as Nauvoo produced cheese with the by-product of whey and there were no new technologies affecting the value of whey.” The terms of a contract must be reasonably certain. Some terms may be missing or left to be agreed upon, but if the essential term or terms are so uncertain that there is no basis for deciding whether the agreement has been kept or broken, there is no contract.
Champaign Nat. Bank v. Landers Seed Co., Inc.,
In
R.J.N. Corp. v. Connelly Food Products, Inc.,
Similarly, the contract between Nauvoo and defendants would remain in effect as long as Nauvoo produced whey as a byproduct of its operations. Nauvoo could cease producing whey at any time. "When Nauvoo would stop producing whey, however, was not a definite, ascertainable event.
In
Champaign Nat. Bank,
In a similar vein, in the contract at issue, the subjective determination as to what constituted “new technologies affecting the value of whey” or how much the value of whey had to be affected before the contract terminated was too indefinite to enforce.
We acknowledge that Illinois courts recognize that a contract may be enforceable if it is terminable upon the occurrence of a cognizable event, even in the absence of a specific termination date.
See, e.g., Consolidated Laboratories, Inc. v. Shandon Scientific Co.,
The trial court did not err in granting summary judgment in favor of Nauvoo because Nauvoo’s contract with defendants was terminable at will. In view of the fact that this holding is dispositive of the propriety of the trial court’s grant of summary judgment, we need not discuss defendants’ other claims of error regarding the grant of summary judgment. Defendants’ second points are denied.
*51 The judgment is affirmed. 6
Notes
. The trial court designated its grant of summary judgment in favor of Nauvoo final for purposes of appeal and later amended the judgment to include language that there was no just reason for delay in accordance with Rule 74.01(b).
. Although the trial court designated its denial of Southwest Whey, Inc.’s motion for leave to file an amended answer and counterclaim against Raskas Foods, Inc. final for purposes of appeal, that ruling is not a final judgment. Regardless of the trial court’s designation, the court’s ruling on the motion for summary judgment pertained only to Nauvoo Cheese Company and thus the litigation remains pending as to Raskas Foods, Inc. Therefore, the ruling on Southwest Whey, Inc.’s motion is not final and appealable.
. Ordinarily, a denial of a motion to dismiss is not final and thus not appealable.
In re Marriage of DeLeon,
. Nauvoo's contention that the issue of venue was previously decided by this court when it denied defendants’ writ of prohibition and that the denial of the application was the law of the case on the issue of venue is without merit. A denial of an application for a writ of prohibition does not necessarily reflect any view by the court on the merits, but rather may and very often does constitute only a ruling that the situation does not warrant utilization of the extraordinary writ of prohibition.
Lewis v. Lewis,
. In the trial court, the parties agreed that Illinois law applied. In determining what law to apply in a contract case, Missouri courts determine the "most significant relationship" by considering the following factors: (1) place of contracting; (2) place of negotiations; (3) place of performance; (4) location of subject matter of the contract; and (5) the domicile, residence, nationality, place of incorporation, and place of business of the parties.
CIT Group/Equipment Financing, Inc. v. Integrated Financial Services, Inc.,
. Nauvoo’s motion to strike defendants' briefs and/or to dismiss their appeals for failure to comply with Rules 84.04(c) and/or 84.04(d) is denied.
