|
Greg
"[Microsoft][ODBC Microsoft Access Driver] Too few parameters.
Expected 1"
This means the you
are either missing a something
even try
this
<cfset form.olderthan =5> <cfset form.youngerthan =1> <cfset form.search = "yes"> <cfset form.gender = "male"> <cfset form.hair = ""> <cfquery name="getRecord" datasource="interact"> SELECT Talent.talentID , Talent.Name , Talent.Gender , Talent.DOB , Talent.Hair , Talent.Eye , Talent.Height , Talent.Clothssize , Talent.shoesize , Talent.hobbies , Talent.BIO , Talent.Compcard , Talent.ID FROM Talent <cfif parameterexists(url.id)> WHERE Talent.ID = #url.ID# <cfelse> <cfif parameterexists(form.search)> WHERE Talent.gender = '#form.gender#' <!--- Check for age ---> <!--- If we want an age range ---> <cfif form.olderthan and form.youngerthan> AND (dob BETWEEN DateAdd(Year,#Form.OlderThan#,dob) AND DateAdd(Year,#Form.YoungerThan#,dob)) </cfif> <!--- If we want all people younger than an age ---> <cfif form.youngerthan and not form.olderthan> AND (dob < dateadd(year,#form.youngerthan#,dob)) </cfif> <!--- If we want all people older than an age ---> <cfif not form.youngerthan and form.olderthan> AND (dob > DateAdd(Year,#Form.OlderThan#,dob)) </cfif> <cfif form.hair is not ""> and talent.hair = '#form.hair#' </cfif> </cfif> </cfif> </cfquery> --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ |
- [cfaussie] Re: look up date by years old with a 2 year spread... stone
- [cfaussie] Re: look up date by years old with a 2 year spread... Adam Chapman
- [cfaussie] Re: look up date by years old with a 2 year spread... Steve Onnis
- [cfaussie] Re: look up date by years old with a 2 year spread... stone
- [cfaussie] Re: look up date by years old with a 2 year spread... stone
- [cfaussie] Re: look up date by years old with a 2 year spread... Steve Onnis
- [cfaussie] Re: look up date by years old with a 2 year spread... stone
- [cfaussie] Re: look up date by years old with a 2 year spread... Adam Chapman
- [cfaussie] Re: look up date by years old with a 2 year spread... Steve Onnis
- [cfaussie] Re: look up date by years old with a 2 year spread... stone
- [cfaussie] Re: look up date by years old with a 2 year spread... Steve Onnis
- [cfaussie] Re: look up date by years old with a 2 year spread... stone
- [cfaussie] Re: look up date by years old with a 2 year spread... Mark Stanton
- [cfaussie] Re: look up date by years old with a 2 year spread... stone
