|
|
Crystal Reports using SQL query
Hi gang,
Rather new to using CR, I have a SQL query I use inside of CR using the
COMMAND inside of Database Expert. My SQL query includes:
***snip***
DECLARE @BegDate datetime;
DECLARE @EndDate datetime;
SET @BegDate = '20100701'
SET @EndDate = '20100731'
***end snip***
I would like to get rid of this hard-coded date portion in the SQL COMMAND
and have the user running the report get a prompt for the data range they
want. Also, I would like the selected date range to appear on final report.
With this setup I cannot display the date range used in the report.
Any help is greatly appreciated...
-Pete
|
|
0
|
|
|
|
Reply
|
Utf
|
10/11/2010 6:12:44 PM |
|
You will need to pass @BegDate and @EndDate as parameters to the report, and
add the parameters you have to your report for view, article below might
help:
http://www.dotnetheaven.com/UploadFile/SaifiFFC/CrystalReport07122007062723AM/CrystalReport.aspx
--
Regards,
--
Mohammad R. Daoud [MVP, MCT]
MCP, MCBMSP, MCTS, MCBMSS
Mob: +962 - 79 -999 65 85
mohdaoud@gmail.com
http://mohdaoud.blogspot.com/
"ChicagoPete" <ChicagoPete@discussions.microsoft.com> wrote in message
news:855E7DC8-0594-497E-A31F-A0330B8A25DF@microsoft.com...
> Hi gang,
>
> Rather new to using CR, I have a SQL query I use inside of CR using the
> COMMAND inside of Database Expert. My SQL query includes:
>
> ***snip***
> DECLARE @BegDate datetime;
> DECLARE @EndDate datetime;
> SET @BegDate = '20100701'
> SET @EndDate = '20100731'
> ***end snip***
>
> I would like to get rid of this hard-coded date portion in the SQL COMMAND
> and have the user running the report get a prompt for the data range they
> want. Also, I would like the selected date range to appear on final
> report.
> With this setup I cannot display the date range used in the report.
>
> Any help is greatly appreciated...
>
> -Pete
|
|
0
|
|
|
|
Reply
|
Mohammad
|
10/11/2010 6:48:29 PM
|
|
|
1 Replies
1108 Views
(page loaded in 0.047 seconds)
Similiar Articles: Crystal Reports using SQL query - microsoft.public.greatplains ...Hi gang, Rather new to using CR, I have a SQL query I use inside of CR using the COMMAND inside of Database Expert. My SQL query includes: ***... Re: MS Access VBA Programming - Queries on the Run - Crystal ...Re: MS Access VBA Programming - Queries on the Run - Crystal ... create a report using vba ... Re: MS Access VBA Programming - Queries on the Run - Crystal ... SQL Query in ... Dynamic Report using Cross Tab query - microsoft.public.access ...Crystal Reports using SQL query - microsoft.public.greatplains ... Access query to get monthly and quarterly report - microsoft ... Dynamic Report using Cross Tab query ... CRM SQL query Use - microsoft.public.crmCrystal Reports using SQL query - microsoft.public.greatplains ... Hi gang, Rather new to using CR, I have a SQL query I use inside of CR using the ... Query String on a Report - microsoft.public.access.reports ...Crystal Report from SQL Query String - VB.NET Tutorial , VB.NET ... How to create a Crystal Report from an SQL query string in vb.net Access query to get monthly and quarterly report - microsoft ...Crystal Reports using SQL query - microsoft.public.greatplains ... Access query to get monthly and quarterly report - microsoft ... Dynamic Report using Cross Tab query ... subreport query timing out?? - microsoft.public.access.reports ...Reports with subreports timing out when printing: crystal, report Keywords: Reports, with, subreports, timing ... add a subreport to a ... When I hit print the same sql query ... Date parameters won't work on crosstab report - microsoft ...Crystal Reports using SQL query - microsoft.public.greatplains ..... need to pass @BegDate and @EndDate as parameters to the report ... an example ... message mean? 3 ... Print a report / query to a text file ?? - microsoft.public.access ...Hi All, I need to export a report's (or a query) data ... file, it support to print your query results out with Crystal Report. ... [RESOLVED] print text file from sql query ... Crystal report 10 - microsoft.public.crmCrystal Reports using SQL query - microsoft.public.greatplains ... SQL of a select query to pull the data, and an example ... message mean? 3-Tier Report using Crosstab ... Crystal Reports: SQL introductionFree article introducing the use of SQL in Crystal Reports ... SQL data source, look at "Show SQL query" in the database menu. This will display the SQL that Crystal Reports ... Using SQL Queries in Crystal Reports824 Appendix A Using SQL Queries in Crystal Reports This might seem correct initially, but this query most likely won’t return what you are look- Dynamic Crystal Reports from SQL Query StringHow to create a Dynamic Crystal Reports from an SQL Query String in vb.net Using Crystal Report with Oracle and parametrized Query (Passing ...Using Crystal Report with Oracle and parametrized Query (C#.net windows application). Passing sql query parameters to crystal reports; Author: Rehan Ahmad Abbasi ... How to Use the SQL Query String in VB6 With Crystal Reports XI ...When you create computer programs in the Visual Basic 6 (VB6) programming language, you can export data from an SQL database directly into Crystal Reports, a software ... 7/23/2012 6:38:35 AM
|
|
|
|
|
|
|
|
|