Solved

Update the crystal report.

Posted on 1997-11-21
2
398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

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.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 3 hours left to enroll

628 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