Ask a Question related to Coldfusion Database Access, Design and Development.
-
AWZ #1
passing data between a page to retrieve more
I have a drop down with 5 zip codes pulled from an Access database... they are
assigned as the primary key. I want to select a zip code from the drop down and
it to go to another dynamic page..eg. action- (area_stats.cfm) which it does do
BUT it always picks the first zip code listed in the database NOT the zip code
the user picked from the drop down. eg. 22142, 22636, 33653, 477474, 47423
are in the database I pick 33653 in the dop down and click 'submit'... on the
recieving area_stats.cfm page it acts as is I always pick 22142 Please help
AWZ Guest
-
help needed in flash form data passing to cfm page
I have a flash form that when submitted passes 4 text fields to www.promegasigns.com/thanks.cfm. The action script for the send button in the flash... -
Passing grid data from one page to another
I am posting a page to another page (form post). The data grid on the second page is being populated with data. Now, on page load of the second... -
How come Server Explorer can retrieve the data from a Oracle DB, yet my ASP.NET page can't do that?
Hi, I know this is a stupid question, but I couldn't find an anwser, so please bear with me: The thing I'm doing is simple: Build a ASP.NET... -
Passing data to perl script from Web page
Hey peoples, perhaps you could help me with this tricky code I'm hoping to build. I have developed a small emailing program for my business. At the... -
passing data from one page to another
I have a .aspx page (we'll call it Form1) with a datagrid on it. The datagrid is populated from a dataset that I manually entered data into (the... -
The ScareCrow #2
Re: passing data between a page to retrieve more
The query in the "area_stats.cfm" page has to include the passed form field
Select *
From table
Where id = #form.nameofselectlist#
Ken
The ScareCrow Guest
-
AWZ #3
Re: passing data between a page to retrieve more
ok, I'm kinda following this. It seems like it should be so simple... I
basically want 26505 from a drop down sent to the next page as dynamic text...
I have my recordset like so SELECT * FROM area_stats WHERE Zip_Code =
#FORM.Zip_Code# on the receiving page but I always get this error Error
Executing Database Query. [Macromedia][SequeLink JDBC Driver][ODBC
Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected
1. The error occurred in
E:\CFusionMX\wwwroot\RealEstateSite\With_fl\Html\a rea_stats_processor.cfm: line
5 3 : 4 : <cfquery name='zipcode' datasource='realestate'> 5 : SELECT
Zip_Code FROM area_stats WHERE Form = #URL.Zip_Code# 6 : </cfquery> 7 :
<cfquery name='zipcodesearch' datasource='realestate'> I know it has to be
as simple as a form name or ??? I guess I really don't know. Any other tips
that would make this easy for a newbie?
AWZ Guest
-
AWZ #4
Re: passing data between a page to retrieve more
ok, I'm kinda following this. It seems like it should be so simple... I
basically want 26505 from a drop down sent to the next page as dynamic text...
I have my recordset like so SELECT * FROM area_stats WHERE Zip_Code =
#FORM.Zip_Code# on the receiving page but I always get this error Error
Executing Database Query. [Macromedia][SequeLink JDBC Driver][ODBC
Socket][Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected
1. The error occurred in
E:\CFusionMX\wwwroot\RealEstateSite\With_fl\Html\a rea_stats_processor.cfm: line
5 3 : 4 : <cfquery name='zipcode' datasource='realestate'> 5 : SELECT
Zip_Code FROM area_stats WHERE Form = #URL.Zip_Code# 6 : </cfquery> 7 :
<cfquery name='zipcodesearch' datasource='realestate'> I know it has to be
as simple as a form name or ??? I guess I really don't know. Any other tips
that would make this easy for a newbie?
AWZ Guest
-
The ScareCrow #5
Re: passing data between a page to retrieve more
From the error message, I would say that the field Zip_Code is text and not a
number, thus you need to enclose the value in single quotes
SELECT *
FROM area_stats
WHERE Zip_Code = '#FORM.Zip_Code#'
Ken
The ScareCrow Guest



Reply With Quote

