Thanks alot! That fixed the problem. Now why it wouldn't work the other way is
beyond me. Hal???

Ian

[EMAIL PROTECTED] wrote:
> I have had a lot of problems with <cfselect>/<select> trying to do what your
doing here...
> 
> I think it is a bug in coldfusion...
> 
> My solution to the problem was to set a temp var to the selected value
outside the <cfloop query=...>, and then compare within the loop...
> 
> e.g
> 
> <cfset tempSelectedItem = qryGetSelectedItem.Item>
> <cfloop query = "qryitems">
> <cfif items.item eq tempSelectedItem>
> <option selected ......>
> <cfelse>
> <option....>
> </cfif>
> </cfloop>
> 
> Does this solve your problem???
> 
> HTH
> 
> Dan.
> 
> 
> ___________________________________________
> It's amazing what happens when you breathe. 
> www.breathe.com
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to