Solved

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

Posted on 2016-08-30
8
40 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 37

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 37

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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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
 
LVL 37

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 37

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

734 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