|
Hi steve removed the WHERE 1=1 but know luck.. should i change the AND dob BETWEEN DateAdd(Year,#Form.OlderThan#,dob) AND DateAdd(Year,#Form.YoungerThan#,dob) move the hashes around the dob as well?
[Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
SQL = "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 AND Talent.gender = 'male' AND dob BETWEEN DateAdd(Year,5,dob) AND DateAdd(Year,1,dob)" ----- Original Message -----
From: Steve Onnis
Sent: Wednesday, March 19, 2003 2:54 PM
Subject: [cfaussie] Re: look up date by years old with a 2 year
spread < 2 > 2 Check
your columns names
If its
not that, re jig the code to get rid of the WHERE 1=1 part. I know this
works under MSSQL, but not sure if it works under Access.
What
is does it just returns true cause 1 does = 1, and then you just add your AND
clauses. Dont know if it works in Access
Anyone?
Steve
--- 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/ --- 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... 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... 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
