Re: sql question
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Sun, 26 Jun 2005 21:48:32 -0500
>I tried modifying the where statement to the following to get record 2
>where ( hrs_emp_clocknum = :emp_clocknum ) and (
> (hrs_startdate < :startdate and hrs_enddate > :startdate) or
> (hrs_startdate > :startdate and hrs_startdate < :enddate))and
> ( pad_code = hrs_status )
>
>this added two new parameters named 'startdate' to the paramaters
>property of the adodataset. when this happened, I thought I was on the
>wrong track. Is there a way to do this?
The Borland ADO components do not allow you to use a parameter name more than
once. Just give the second set of date parameters new names and you SQL should
work.
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- sql question
- From: Terry
- sql question
- Prev by Date: How do I avoide multiple firing of confirmation code in OnBeforeDelete event?
- Next by Date: Re: How do I avoide multiple firing of confirmation code in OnBeforeDelete event?
- Previous by thread: sql question
- Next by thread: txt to dbf
- Index(es):