Defaulting to current record when running a report

I have added a new report and an Action on a page to run the report when I press the button.

I want it to use the current record on the page (Routing page).

In the OnAction trigger I put

REPORT.RUN(50020,TRUE,FALSE,Rec);

It works the first time - selecting the correct Routing no in the filter, but every other time I go into that same report, I get the same routing No. that I reported on the first time in the filter.

How do I rectify this?

Cheers

Dave K

Actually, it doesn’t use the current record in the first place either.

How do I do this?

Dave K

something like this

http://www.mibuso.com/forum/viewtopic.php?t=46505

Thanks you’re great !