Solved

Change Datasource of Bound fields

Posted on 2007-11-15
3
1,026 Views
Last Modified: 2012-06-21
I have designed a report in Crystal Reports. Prior to today I had never done it before so I am quite pleased with myself! I Hva eone problem though - When I set up the report, I used a query in MS Access to create the data. THis afternoon, i have learned how to create a command using a SQL statement. I don't want to use the query anymore - I'd rather use the fields in the command (which are exactly the same as in the Access query). How can I change the bound text fileds from being bound from the query to be bound from the command without deleteing them all and starting again? Surely there must be a quicker way than deleting them all and dragging them again from the command?!! In Access you can just change the datasource property at the click of a button. Can you do this in Crystal?
0
Comment
Question by:fuerteventura
  • 2
3 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 20291516
Which version of Crystal?

You can try changing the data source location.

In general when changing the data driver like that the easy way is to rebuild the report.  Any particular reason for changing to use a command rather than the query?

mlmcc
0
 

Author Comment

by:fuerteventura
ID: 20297016
Many thanks for your answer. I'm using crystal 9. Two main reasons for using a command: 1 - There's a possibility of upsizing to SQL Server from Access as the backen in the future and I'd rather control the query from Crystal. 2 - When I was making changes to the query, they weren't appearing in Crystal. i.e I added a field into the query and deleted another but it wasn't reflecting this in my field list - despite selectijng refresh. Is there a way around this? With the datasource - I'm using the same database so no need to chang (unless I'm missing the point somewhere here?)
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 20298314
When you change the datasource by adding or deleting fields you have to VERIFY THE DATABASE

Open the report
Click DATABASE --> VERIFY DATABASE

mlmcc
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

808 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