Re: Newbie - Date range parameters question
From: Don (doncal_at_ntlworld.com)
Date: 11/09/04
- Next message: TomTom: "Assigning color to pie chart"
- Previous message: SÁRINGER Zoltán: "VS Installer+CR9: file xxx.dll is invalid."
- In reply to: Ken Briscoe: "Re: Newbie - Date range parameters question"
- Next in thread: Don: "Re: Newbie - Date range parameters question"
- Reply: Don: "Re: Newbie - Date range parameters question"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 9 Nov 2004 15:57:28 -0000
Hi Ken,
Thanks for replying.
I have tried {Table.DateField} in {?Dates}but I get a Crystal Reports error
Crystal Reports: Database Error
ODBC error:: [Microsoft][ODBC]Syntax error or access violation
My syntax appears fine. Even the where clause below gives that error
message.
WHERE
RSM_JOB.CLOSEDDATE in {?Dates}
Any ideas?
"Ken Briscoe" <youcant@sendmespam.com> wrote in message
news:uQfwIXmxEHA.2580@TK2MSFTNGP10.phx.gbl...
> In news:%23ETRbgfxEHA.908@TK2MSFTNGP11.phx.gbl,
> Don <doncal@ntlworld.com> rambled:
> >
> > Basically I would like to add a date range to the sql query before it
> > is executed.
> > Im using 8.5.
> >
> > The user enters the start and end date on running the report. How do
> > I pass those parameters on to the SQL query?
>
> Use the Select Expert (which basically is a GUI for modifying the "WHERE"
> clause of the SQL being passed to the database). Add in something like
this
> to what's already there:
>
> //if your date parameter is a range, use next line
> {Table.DateField} in {?DateRange}
>
> //if you have two date parameters that create your range, use next 2 lines
> {Table.DateField} > {?LowerBoundaryParameter} and
> {Table.DateField} < {?UpperBoundaryParameter}
>
> Hope that helps.
>
> --
>
> KB - MCNGP "silent thug" #26
>
> Briscobar AT gmail DOT com
>
>
- Next message: TomTom: "Assigning color to pie chart"
- Previous message: SÁRINGER Zoltán: "VS Installer+CR9: file xxx.dll is invalid."
- In reply to: Ken Briscoe: "Re: Newbie - Date range parameters question"
- Next in thread: Don: "Re: Newbie - Date range parameters question"
- Reply: Don: "Re: Newbie - Date range parameters question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|