Solved

Change sql query in data definition of report

Posted on 2002-03-14
1
303 Views
Last Modified: 2008-03-17
Hello

I design a report in Crystal Report as

Start Crystal report
Open new file
In Data tab select SQL/ODBC
In Server type select ADO (Active Data)
Select an ADO (ODBC)
Next -> Finish
Then select SQL and written a sql query
and design report on base of query fields.

Now question is that i want to change query of this report how can i edit the query.

Thanks.


0
Comment
Question by:pak_slm
1 Comment
 
LVL 1

Accepted Solution

by:
kzbera earned 25 total points
ID: 6864107
First time while creating report save the sql query.
OPTION 1:
I have tried with a table called AM_PM_TYPE which has two column "Index" and "TX"
I have written the query as
"select * from AM_PM_TYPE"
build it . The microsoft query designer will open
chose the column "INDEX" AND "TX"
click on next next
then the query looks like following:
select AM_PM_TYPE.INDEX, AM_PM_TYPE.TX from AM_PM_TYPE
and save the query.
design the report
shows
INDEX                  Description

AM                     bla bla bla
PM                     bla bla bla
Save the report
go to the Report Expert
click ok to warning message
select the ADO
follow the same procedure (change the query)
click ok
it will ask you that the report with the ado name already added with alias "whgkh" want to add another alias for "whgkh"
click yes
change the name of the alias.
Then remove the fields from the first query
select the desired fields from the second alias name.

Then after designing the report go to Database ->remove from report and remove the first alias name.
If you now see the visual linking expert it will show the fields from second query.
It worked ..

Option 2:

change the saved query file
refresh the report with verify database.
redesign the report.

Best of luck.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now