Solved

Access 2010:  How to Have a Form Only Generate Data for One Record

Posted on 2016-08-30
8
31 Views
Last Modified: 2016-09-01
Hello:

Someone built a Microsoft Access 2010 .accdb file for us.  Unfortunately, the form that we use to generate reports per salesperson from this file contains a filter but only by document date.

I need to have this form--just this one time--generate reports for only one salesperson, in particular.  I'm not Access savvy, at all!

Anyway, I do see an object of some sort on the left-hand side of the window called "salespeople".  When I open it, I can filter it by the one salesperson.  But, how do I know that the form is going to generate a report for only that one salesperson?  In other words, how do I apply this filter to that form?

This is not going to be permanent.  Again, I want to apply this filter, just this one time.

Thanks!

John
0
Comment
Question by:John Ellis
  • 4
  • 4
8 Comments
 
LVL 34

Expert Comment

by:PatHartman
ID: 41776964
Without seeing the database, I can't tell you how the developer is passing in the variable.  I suggest that you go to Gigs and find someone who can log on to your system with you and make the change in a temporary copy of the database.  Unless the developer did something obscure, it should take less than a half hour.
0
 

Author Comment

by:John Ellis
ID: 41776977
No, someone should just be able to tell me how to get a form to generate a report for only one salesperson for goodness sakes.  

If I knew Access, I'm sure that even I could do it.  It's a simple question.

Unfortunately, the person who created this file is no longer with our company.

John
0
 
LVL 34

Expert Comment

by:PatHartman
ID: 41776997
Generating the report doesn't happen by magic.  There is code behind the form that is opening the report.  It might be an OpenReport method where the salesman argument is passed in.  Perhaps the query the report is based on is getting the the salesman from the open form.  Perhaps there is a table that is used to hold the criteria.

You could always open the report and just print the relevant pages.

I lost my crystal ball so I don't think I can help you.
0
 

Author Comment

by:John Ellis
ID: 41777004
Mr. Hartman:

That final comment was not very professional.

Incidentally, you would use a crystal ball to look into the future--not the present.  

John
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 34

Expert Comment

by:PatHartman
ID: 41777007
For someone who knows nothing about a topic you're pretty snotty yourself.  I don't take gigs so I wasn't trolling for work.
0
 

Author Comment

by:John Ellis
ID: 41777181
The thought of "trolling for work" did not even enter my mind.
0
 

Author Comment

by:John Ellis
ID: 41778200
Hello Mr. Hartman:

I apologize, for my comment.  I was simply taken aback by the use of the phrase "crystal ball".  :)

I simply re-ran all of the reports from the Access database to PDFs saved on a network directory.  I would like to have generated reports for only the three salespeople that I had in mind.  But, the Access form does not specify criteria for "Salesperson ID"--only a Document Date range.  So, I was "stuck" and decided to ask the question here and just get some "general tips".

Again, though, I do apologize.

Thank you!

John
0
 
LVL 34

Accepted Solution

by:
PatHartman earned 500 total points
ID: 41778260
No problem.  I'm glad you took my advice to print the reports and just send the relevant pages.  There is no way short of modifying the application to do what you are asking and that was what I was trying to tell you.  It would have been easy enough for the developer to have given you the option to print one salesman or all when he created the app.  I do it all the time.  But, with you having no knowledge of Access, I could not even give you specific directions without knowing how the developer had done the programming to begin with.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now