Solved

Update the crystal report.

Posted on 1997-11-21
2
391 Views
Last Modified: 2012-06-27
Hi,

I have a question on crystal report. I am writing VB program on VB5. I used this VB program to get some data from users, and then save that to an Access file. I also create a crystal report file to get the most update data from that database file when I run my VB program.  However, when I call that report file I create,by typing "CrystalReport1.action = 1", all the data just same as the time I create the report file. It does not show the updata file in the database.

I just want to know, do I need to anything in my VB code, so that it will update crystal file every time I call it in VB. Or is there any command I need to check in the crystal report, so that it will updata automatically.

I will more than appreciate if you can help me on this problem,

Joe
0
Comment
Question by:joeng
2 Comments
 

Expert Comment

by:gaxes
ID: 1441924
Use Verify Database to make certain your report prints with the current version of the active database.
Verify Database command (Database menu)

Use Verify Database to make certain your report prints with the current version of the active database.

When you first create a report, the report draws its fields from the database as it exists at that time. It uses the structure of the database (number of fields, field position, data type, etc.) to identify and select those fields you want to appear on the report. If you change the structure of the database (by adding or deleting fields) after you create the report, the program needs to adapt the report to the new structure. The Verify Database command is the tool you use for adapting the report to the new database structure.

   If the current version of the database has more fields than it had when the report was first created, Crystal Reports attempts to identify and use the correct fields from the new database. The aim is to print an unchanged version of the report even though the underlying database has changed.

   If the current version of the database has fewer fields than it had when the report was first created, it uses those fields that are still available when it prints the report and ignores those that are no longer available.

When you first create a report, the report draws its fields from the database as it exists at that time. It uses the structure of the database (number of fields, field position, data type, etc.) to identify and select those fields you want to appear on the report. If you change the structure of the database (by adding or deleting fields) after you create the report, the program needs to adapt the report to the new structure. The Verify Database command is the tool you use for adapting the report to the new database structure.

   If the current version of the database has more fields than it had when the report was first created, Crystal Reports attempts to identify and use the correct fields from the new database. The aim is to print an unchanged version of the report even though the underlying database has changed.

   If the current version of the database has fewer fields than it had when the report was first created, it uses those fields that are still available when it prints the report and ignores those that are no longer available.

0
 
LVL 2

Accepted Solution

by:
PedroMVGomes earned 200 total points
ID: 1441925
your problem is that crytal reports by default saves the data with the report. It is very easy to solve, just uncheck the SAVE DATA WITH REPORT option from the file menu and the save your report, them crystal will be getting the new data from the access file
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

744 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

11 Experts available now in Live!

Get 1:1 Help Now