CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Type mismatch error in custom function

Print topic Send  topic

Author Message
charles

Posts: 59
Posted: 02/11/2009, 4:38 AM

i created the following custom function in codechargestudio to automatically look up an employees costcenter and make it the default for a form field.

'SmartGetemployeeID()
function SmartGetEmployeeID()
SmartGetEmployeeID=CCDLookUp("employee_id","users","UserID=" & Dbconnection1.ToSQL(CCGetuserID(),ccsinteger),Dbconnection1)
End function

'SmartGetcostcenterID()
function smartGetcostcenterID()
smartGetcostcenterID()=CCDLookUp"costcenterID","employees_costcenter","employee_id=" & Dbconnection1.ToSQL(SmartGetemployeeID(),ccsinteger),Dbconnection1)
End function

when i make this a default on a form field and run the page, a get a data mismatch error.
What could i be doing wrong.
Regards,
charles
View profile  Send private message
Chris__T


Posts: 339
Posted: 02/11/2009, 12:42 PM

missing a ( in 2nd CCDLookup .....before "costcenterID"
View profile  Send private message

Add new topic Subscribe to topic   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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