Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WRONG RECORDS IN WEEKLY REPORT

Status
Not open for further replies.

Impart

Technical User
Jan 28, 2004
15
GB
I have various reports analysing data from a single .dbf. These are all Summary Reports with the group set to field 'date', some by month some by week. All except one work as expected. All data is searched for on a screen based on the same dbf file then the reports can be launched via buttons running macros which simply change the view. The problem report is a weekly one which in all other respects is a duplicate of a monthly one which works fine. It has just four other fields, a scount & a ssum of the 'Amount1' field plus two fields with derived data. These are Calc fields like so: If(Status='R',Amount2,0) & IF(Status='D',Amount3,0). These are applied, via the dialog box, as Ssum(....) in the normal way.
When the search is done the number of records is noted, after each of the reports is run the record count remains the same, as expected - except when the faulty report is run when the record count is a constant figure different to the found set, and the report is showing the wrong data.
 
Thanks Paul,
there are several joined joined tables in this apr but this part is all on the one dbf and yes I have checked (several times!). Thats not the answer.
 
PS
I have listed both the good and the faulty records as found by the search routine. Before and after running all other summaries the records list correctly. After running the problem report the records are allways the same ones; found 1895 of 55597, these are dated from 1/1/04 to date & followed by 1/10/03 to 31/12/03.
I have a deletion routine in a CLOSE macro which dumps these temp recs (they are imported into a combined file in OPEN). As there seems no way to program 'compress' I have done this manually on the empty file, also deleted .adx file. However as the other weekly and monthly reports are ok it would seem there is no problem with the data.
 
PPS
Ooops, what a waste of time. Yours and mine - sorry. My one line macro that changes the view to this report had spawned an extra line 'Find using stored find'. I havent got any stored finds.
My apologies for wasting your time, problem solved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top