Steven this is what i do with the 2 selects related.
notice the default values.

if nothing is selected then pre-select US & Ohio

if this is an update then there would be values 
& i just grab the values in  the else's statement to 

default1="#rs_Update.Country_Code_ID#"
default2="#rs_Update.State_Code_ID#"

hth
-paul

<cfif #rs_Update.State_Code_ID# EQ "">    
<CF_TwoSelectsRelated
        QUERY="rs_Select_Country"
        NAME1="Country_Code_ID"
        NAME2="State_Code_ID"
        DISPLAY1="Country_Name"
        DISPLAY2="State_Name"
        VALUE1="Country_Code_ID"
        VALUE2="State_Code_ID"
        default1="US"
        default2="OH"
        AUTOSELECTFIRST="NO"
        FORMNAME="Form_Project_Set_Up_01">
        <cfelse>
<!--- :: Custom Tag :: CF_TwoSelectsRelated :: Drop down list of
state/country codes --->
<CF_TwoSelectsRelated
        QUERY="rs_Select_Country"
        NAME1="Country_Code_ID"
        NAME2="State_Code_ID"
        DISPLAY1="Country_Name"
        DISPLAY2="State_Name"
        VALUE1="Country_Code_ID"
        VALUE2="State_Code_ID"
        default1="#rs_Update.Country_Code_ID#"
        default2="#rs_Update.State_Code_ID#"
        AUTOSELECTFIRST="NO"
        FORMNAME="Form_Project_Set_Up_01">
        
        </cfif>

-paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to