Rolf,
>As I write this, I get the idea that I might perhaps work around this by setting a filter on the child table (set filter to recId = masterfile.recId) before counting, and then resetting the filter.
>
Instead of using a filter, use the index on the child table explicitly. Ex.
seek *foreign key in child table*
count while keyfield = keyexpression to lncount
The WHILE clause makes the count command start at the present location and work its way sequentially thorugh the records. As long as the correct index is active, this will give you the information you want.
>Another problem that I got a reply to was about how the picture buttons from wizards do not show the pictures when running the compiled application alone in its intended folder, while it works allrigt when running from within VFP.
>
>I tried copying the .bmp's and changing the default directory in the picture buttons class, but it did not work.
You could always compile the BMPs into the EXE then it should be able to find them when it needs them.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao