Hi all
Can somebody out there try to help me out. I have a form which needs to pull out the results based on four different ranges. For example the heading is called Easting and the first field name is called "e1" and second is called "e2" And the second heading of the field is called Northing and the field name is called "n1" and the next field is called "n2". What need to happen is when a user put a range from e1 and e2 and also between n1 and n2 all the records which fall within the ranges should be pull out.
I have got the sql quote for this but it doen't not like it at all. It comes up with "error converting numeric to float. I don't understand. here the code for it.
********
Code
*******
<CFQUERY NAME= "GetSearch" datasource=#MM_Connection1_DSN# username=#MM_Connection1_USERNAME# password=#MM_Connection1_PASSWORD#>
Select *
From T_SOIL_SITE
Where easting between '@e1' and '@e2'
and northing between '#n1#' and '#n2#'
Declare @e1 numeric (9),@e2 numeric (9),@n1 numeric (9),@n2 numeric (9)
set @e1 = '#e1#'
set @e2 = '#e2#'
set @n1 = '#n1#'
set @n2 = '#n2#'
</cfquery>
Thanks
from
yogi