Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

Update the crystal report.

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
joeng
Asked:
joeng
1 Solution
 
gaxesCommented:
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
 
PedroMVGomesCommented:
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now