Line number for each record in a report

Hi experts,

I have a Ms Access report based on a query with the following parameter:
FROM [qryClientList]
WHERE ((([qryClientList].Facilitator)=[Forms]![frmFacilitatorName]![cboCRF]) AND (([qryClientList].Filestatus)="active"))
The report is running okay, only when I added the line number for each record, no matter it's overall or over group, the consecutive number doesn't go to the next page. It starts all over again from 1 for each page.
When I deleted the parameter, the line numbers are okay for the entire report.
How do I keep the paremeter and let the number work?

Thank you!

LL
howruaz9Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jeffrey CoachmanMIS LiasonCommented:
I don't know how you created/added your line numbers, ...but try this, it woks fine for me filtered.

So in my case I am opening the report with a filter, and leaving the source table/query alone (no parameter)



Access-EEQ-ReportLine-Numbers.mdb
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey CoachmanMIS LiasonCommented:
here is the code for two filters (text for name, and a numeric range for Amount)

DoCmd.OpenReport "YourReport", acViewPreview, , "cName=" & "'" & Me.cName & "'" & " AND " & "Amount>=" & 50
0
Jeffrey CoachmanMIS LiasonCommented:
Some notes:

In my sample you can ignore the Running sum field (I based this sample on a previous sample)


By opening the report with a filter, you can leave the Reports recordsorce without any parameter criteria.
This way you can still open the report on its own (by itself without the form) without triggering the annoying parameter prompt...
;-)

Jeff
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

howruaz9Author Commented:
Hi Jeff,

I'm trying your suggestion to open the report with a filter, just to let you know while I'm working on it.

Thanks,

LL
0
howruaz9Author Commented:
Thank you very much, Jeff. It's working now.

I don't know what exactly I did wrong before, but I'm so glad it got fixed.

Thanks again and wish you a wonderful holiday season!!!

LL
0
Jeffrey CoachmanMIS LiasonCommented:
Great, thanks


;-)

Jeff
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.