Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 141316 - Last Review: September 30, 2003 - Revision: 3.1
FIX: Report Is Wrong When You Relate Tables on Currency Field
This article was previously published under Q141316
When you relate two tables on a currency field in the data environment of a
report, incorrect data is displayed in a report. The same relation will
display data correctly in a form.
Group on STR(<parent_table.currency_field>,20,4).
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem has been fixed in
Visual FoxPro 5.0 for Windows.
By running the One-to-Many Form Wizard on two tables using the currency
fields as the relating fields the correct data will be shown.
Steps to Reproduce Problem
- Create a new report.
- Right-click the report, and select Data Environment.
- Add two tables that contain currency fields (the child table needs to
have an index on this currency field).
- Click the currency field in the parent table, and drag it to the
currency index expression in the child table. A relation is now set.
- Set the OnetoMany property to True (.T.) in the Properties sheet for the
relationship.
- Add a Data Grouping that is based on the currency field. Place some
fields from the parent table in the Group Header and some fields from
the child table in the Detail band.
- Right-click the report, and select Preview. Note that the data is
displayed incorrectly with respect to the relationship.
APPLIES TO
- Microsoft Visual FoxPro 3.0 Standard Edition
- Microsoft Visual FoxPro 3.0b Standard Edition
| kbbug kbfix kbvfp500fix KB141316 |
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate