Are you saying that: <cfqueryparam cfsqltype="cf_sql_integer" value="#Ticket_ID#" />
is either passing in a blank value or the right value depending on the SQL statement above it? Ade -----Original Message----- From: Captain John Michael Permetheis IV [mailto:[EMAIL PROTECTED] Sent: 03 October 2005 16:54 To: CF-Talk Subject: missing argument in a function i have a function that takes a ticket_id as an argument. the function runs a query and returns it. i have found that if the query runs like this: INNER JOIN lkp_Ticket_Types ON tbl_Tickets.Type_ID = lkp_Ticket_Types.Type_ID INNER JOIN lkp_Ticket_Status ON tbl_Tickets.Status_ID = lkp_Ticket_Status.Status_ID INNER JOIN lkp_Ticket_Severity ON tbl_Tickets.Severity_ID = lkp_Ticket_Severity.Severity_ID INNER JOIN tbl_Projects ON tbl_Tickets.Project_ID = tbl_Projects.Project_ID LEFT OUTER JOIN lkp_Releases ON tbl_Tickets.Release_ID = lkp_Releases.Release_ID WHERE tbl_Tickets.Ticket_ID = <cfqueryparam cfsqltype="cf_sql_integer" value="#Ticket_ID#" /> #ticket_id# is blank. BUT if i removed all the joined tables and just do a query on the /main/ table the where clause is valid (#ticket_id#) holds the proper value. any ideas what is/could be causing this? anyone seen anything like this before? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:219902 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

