CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Type Mismatch

Print topic Send  topic

Author Message
Doug
Posted: 01/30/2002, 4:20 PM

I get a type mismatch error on the following code, the last line. InvoiceId is a number. I am stumped.
------------
pkSQL = "select max(InvoiceID) as max_id from Invoices where MyAccountID= " & ToSQL(session("MyAccountID"), "Number")
openrs rs, pkSQL
last = GetValue(rs, "max_id")

GetParam("pInvoiceID") = last
-------------------

-Doug
Omaha
Posted: 01/30/2002, 7:34 PM

Well, I've never seen a value being assigned to a function like you have:

GetParam("pInvoiceID") = last

usually it is a value being set by a function as in

last = GetParam("pInvoiceID")

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.