It also looks like you're trying to access a SQL value in your CF code with <cfif sl_applicant.state_hm IS NOT NULL>. You can't mix things like this.
Adrian -----Original Message----- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: 01 March 2006 15:27 To: CF-Talk Subject: Re: null query prob You are conditionally running the inner join, but you are always pulling the states variables. They both need to be conditional, I think On 3/1/06, Tim Laureska <[EMAIL PROTECTED]> wrote: > When I run this query I get sl_applicant is UNDEFINED. could someone > enlighten me :-) > > > > <cfquery datasource="#datasource#" name="appl_info"> > > SELECT sl_applicant.*, states.* > > FROM sl_applicant > > <cfif sl_applicant.state_hm IS NOT NULL>INNER > JOIN states ON states.state_id=sl_applicant.state_hm</cfif> > > </cfquery> > > > > thanks > > Tim ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233776 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