Runtime error '800a000d' with asp code
<p>I receive the following error when I do a search on the website for items in the database. </p>

<pre><code>Microsoft VBScript runtime error '800a000d'
Type mismatch: 'FormatCurrency'
/search_diamond_results.asp, line 657
</code></pre>

<p>Line 657 has the following code.</p>

<pre><code>'profprice = 0

                                price = 0 

                                price = rst("price")
                                'profprice = rst("profit") / 100                 

                                totprice = price' + profprice 


                                'If rst("profit") &lt;&gt; "" then
                    657---&gt;             prc = FormatCurrency(totprice)
                                'Else
                                    If rst("price") &lt;&gt; "" then
                                        prc = FormatCurrency(rst("price")) 
                                    'Else
                                        'prc = rst("price") 
                                    End if
                                'End If 
</code></pre>

<p>Do you have a solution to the above error?</p>