My Day, My Turn. You knew it was coming. Afterall it is FRIDAY! Studied w/ group last night. Working on building the CSV import tool. Very basic stuff. We got the CFQuery roughed in but are trying to detail it and got stuck in the Form. We want to call a field from a table and list the entries once. There are about 4000 rows, but only about a dozen entries. For some reason we can not seem to get or find data in a google search that uncovers the following: Error: ------------------------------------ Variable VEND_NAME is undefined. The error occurred in C:\Inetpub\wwwroot\intranet.motorcyclecarbs.com\development\vendorupdate1.cf m: line 25 23 : style = "style specification" 24 : query = "vendordata" 25 : value = "#Vend_Name#" 26 : > 27 : <option value="#vendordata.Vend_Name#">#vendordata.Vend_Name#</option> ----------------------------- coldfusion.runtime.UndefinedVariableException: Variable VEND_NAME is undefined. --------------------------------------- file code shows: --------------- <!--- Establish parameters for first time through ---> <cfparam name="FORM.vendor" default="0"> <cfquery name="vendordata" datasource="carbs"> SELECT sku, name, Vend_Name, Vend_Number, Unit_Measure, Deal_Price, Volume, UnitRetail, UnitPrice, Description1, Description2 FROM carbs.products WHERE Vend_Name = <cfqueryparam cfsqltype="cf_sql_varchar" value="#FORM.vendor#" maxlength="40" /> </cfquery> <!-- Some stuff removed for clarity ---> <cfform> <cfselect name = "vendorname" style = "style specification" query = "vendordata" value = "#Vend_Name#" > <option value="#vendordata.Vend_Name#">#vendordata.Vend_Name#</option> </cfselect> <input type="submit" name="Button1" value="Go"> </cfform>
Any ideas what we are overlooking? Robert P. Reil Managing Director, Motorcyclecarbs.com, Inc. 4292 Country Garden Walk NW Kennesaw, Ga. 30152 Office 770-974-8851 Fax 770-974-8852 www.motorcyclecarbs.com <http://www.motorcyclecarbs.com/>
