add ability to search name field in query- before displaying records

hello - am attaching database
when database opens - a form comes up
if you select the date 8/22 in 'from' box
and 8/25 in 'to' box
Then click print button- you will see it displays records for those dates.

I want to be able to create a report also that first asks to enter a name- and only displays records with that name
is this possible?
[names are jones and thomas]
thank you
Echeck.accdb
davetoughAsked:
Who is Participating?
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:
whats the need to create a temp table? (and all the associated code)

A basic report filter could look something like this:
DoCmd.OpenReport "repweekly", acViewReport, , "SomeDateField=" & "#" & txtDate & "#" & " And " & "SomeNameField=" & "'" & Me.cboName & "'"

This is really all you need to open a report with a filters from a form


JeffCoachman
0
Jeffrey CoachmanMIS LiasonCommented:
sorry.... More info

So basically you would add a combobox or textbox for the Name, then just open the report based on the form selections...
0
davetoughAuthor Commented:
i need the report to display like this that is why- will try suggestion-
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Jeffrey CoachmanMIS LiasonCommented:
<i need the report to display like this that is why>
My question was about all the other code.
Creating temp tables and using recordsets has nothing to do with how the report "Displays", it justs creates/manipulates the underlying data.
I was just curious as to why all of that is needed.

I was just wondering why you could not simply create the Report from a simple table or query, and open the form with the filters as I demonstrated...

Keep me posted.


Jeff
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
davetoughAuthor Commented:
you may be right- i was having trouble- i wanted this to display - instead of vertical- more like a cross tab query- then I realized - excel did better job- but then I went back to access- because- I need to just make buttons that people can use- and exporting it to excel seems to be more involved-
but now i am wondering if  i can create this report without having a temp table and be this involved like you said-
maybe i am making more complicated than needs to be
thank you
0
davetoughAuthor Commented:
i'll post back - when i complete
0
Jeffrey CoachmanMIS LiasonCommented:

In Access you can create a Pivot table in some cases.

Finally (if your feeling froggy) you can create a "Dynamic Crosstab Report"
http://support.microsoft.com/kb/328320

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.