Link to home
Start Free TrialLog in
Avatar of joeng
joeng

asked on

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
Avatar of gaxes
gaxes

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.

ASKER CERTIFIED SOLUTION
Avatar of PedroMVGomes
PedroMVGomes

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial