<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Jeff Harrison wrote:
<blockquote cite="mid:416656.4637.qm@web50706.mail.re2.yahoo.com"
type="cite">
<pre wrap="">--- Boaz Bezborodko <a class="moz-txt-link-rfc2396E" href="mailto:boaz@mirrotek.com"><boaz@mirrotek.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I'm having trouble with a report. I'm re-running an
accounting report
that someone ran a week and a half ago, but I'm
getting a strange
result. One of the items in an associated field is
not being printed.
Each record can store a few GL numbers in associated
fields A1. The
report selects the records by invoice date and sorts
them by A1. The
report that was run over a week ago seems to have
everything correct,
but the report I'm running today has the associated
field missing on
just one record. Other records with associated
fields print out properly.
I have the exact same problem with 3 other records
that are exactly the
same in different months. (They are monthly
insurance payments
allocated to two different GL #s.) For some reason
the second
associated field on them also don't appear on the
reports for their
respective months.
The records haven't been touched in between the runs
and the only change
was indexing the selection to speed it up. But the
records are
definitely getting selected since the first
associated field appears on
the file. And the report is definitely printing
associated fields since
other records with entries in the multiple
associated fields are
displaying correctly.
What is causing this and how do I fix it?
Boaz
_______________________________________________
</pre>
</blockquote>
<pre wrap=""><!---->
Hi Boaz. It is hard to answer this question without
knowing the specifics of exactly what you are doing
for sort/selection. What does the -v table look like,
what do the sort fields look like on the report? What
auto indexes do you have? What does the selection
table look like?
A telling statement of yours was:
...
</pre>
<blockquote type="cite">
<pre wrap="">and the only change
was indexing the selection to speed it up.
</pre>
</blockquote>
<pre wrap=""><!---->
Can you give more specifics here?
Jeff Harrison
<a class="moz-txt-link-abbreviated" href="mailto:jeffaharrison@yahoo.com">jeffaharrison@yahoo.com</a>
</pre>
</blockquote>
OK, I found out that the problem occurs when I use indexing to go
through the sort/selection processing to speed up the operation, but I
still don't know why.<br>
<br>
I execute rreport with a -io ('o' index is on the invoice date field
'20'). I then ask for the beginning date (dummy field 'ba') and ending
field ('bb'). I then use this to jump to the first record:<br>
<br>
<tt>32 ------- - - - - - - - - - - - - -
- - -<br>
◄
If: ◄<br>
Then: lookup - k=ba i=O
-bg ◄</tt><br>
<br>
The selection processing then looks like this:<br>
<br>
<tt>33 ------- - - - - - - - - - - - - -
- - -<br>
◄
If: ◄<br>
Then:
ai(10,mdyy/,g)="12/31/2050" ◄<br>
34 ------- - - - - - - - - - - - - - -
- -<br>
◄ If:
'--------------------------------------------------------- ◄<br>
Then:
◄<br>
35 ------- - - - - - - - - - - - - - -
- -<br>
SELECT ◄ If: 20 gt
bb ◄<br>
Then: lookup - k=ai i=O
-bg ◄<br>
36 ------- - - - - - - - - - - - - - -
- -<br>
◄ If: ag ne "" and ag ne
17 ◄<br>
Then:
END ◄<br>
37 ------- - - - - - - - - - - - - - -
- -<br>
◄ If: MID(30,"1","13") eq "Keyoffs check" 'Keyoff checks
should not be><br>
Then:
END ◄<br>
38 ------- - - - - - - - - - - - - - -
- -<br>
◄ If: 20 ge ba and 20 le bb and aa="" and 19 ne
"AD" ◄<br>
Then:
SELECT ◄</tt><br>
<br>
This selects every record with '20' within 'ba' and 'b'. Even the
record I'm missing gets selected for the first associated field in the
record. But the second associated field never shows up even though
other records with something in the second associated field get printed.<br>
<br>
The Sort for the output file looks like this.<br>
<br>
<tt>┌─────────────────────────────── Field list
──────────────────────────────┐<br>
│ 1- VENDOR NAME (RANDOM 11- CHECK NUMBER (ALPHA 21- due
date │<br>
│ 2- address 1 (r 12- VOUCHER NUMBER 22- address line
3 │<br>
│ 3- address 2 (r 13- discount base 23- VENDOR NAME
(RECENT │<br>
│ 4- city 14- terms (days) 24- date units
received │<br>
│ 5- state 15- discount (days) 25- sales tax
code │<br>
│ 6- zip 16- discount percent (% 26- taxable
amount │<br>
│ 7- code for memo 17- VENDOR NUMBER 27-
remarks │<br>
│ 8- CHECK NUMBER (NUMER 18- invoice amount 28- date
posted │<br>
│ 9- date paid 19- invoice or debit me 29- customer ship-to
(f │<br>
│ 10- CHECK AMOUNT 20- invoice date 30- INVOICE
NUMBER │<br>
└─────────────────────────────────────────────────────────────────────────┘<br>
=A2<br>
┌────────────────────────── Sort definition ────────────────────────┐<br>
│ │<br>
│ Sort Field: 61 ◄ A1)◄ 1 ◄ 28 ◄ 9 ◄ ◄ ◄ ◄ │<br>
---│ Length: 0◄ 5◄ 30◄ 8◄ 8◄ ◄ ◄ ◄ │<br>
│ Descending: ◄ ◄ ◄ ◄ ◄ ◄ ◄ ◄ │<br>
│ Subtotal Field: f◄ x◄ x◄ ◄ ◄ ◄ ◄ ◄ │<br>
│ │<br>
le:└──────────────────────────Press ESC To Record, Ctrl-C To
Cancel┘ETD<br>
<br>
Press F10 for help<br>
</tt><br>
And the output looks like this:<br>
<br>
<tt>!@td<br>
!@tm P U R C H A S E J O U R N A L<br>
*ba - *bb<br>
<br>
V E N D O R INVOICE NUMBER DATE REC'D DATE
POSTED DATE PAID AMOUNT R E M A R K S<br>
===============================================================================<br>
D A T A L I N E S<br>
*1 *30 *24
*28 *ae*9 *A2 *ad<br>
_____________________________T O T A L L I N E
S______________________________<br>
SUBTOTAL BY VENDOR NAME (RANDOM) INDEX E<br>
<br>
SUBTOTAL BY A1) GL NUMBER 1<br>
<br>
*A1 *ab<br>
</tt><br>
As far as I can tell everything looks kosher. What am I missing?<br>
<br>
Boaz<br>
</body>
</html>