473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Search for multiple records and print them to a report

I want to search a database by typing in the word/number I am looking for, then display any records associated with it; then I want to print only those records out in a report template.

For example, in Access 2007, from a table I can select the down arrow from the column header to go to filters, then selecting "Text Filter" and then "Equals..." I can type in what I am looking for. It displays all the records associated with what I searched. But, instead I want the ability to select a button that takes me directly to where I enter in what I am searching for. Then I want another button that takes me to a print preview screen displaying a report listing all the records associated with that search.

I appreciate any assistance you can provide.
Feb 20 '13 #1
5 2318
zmbd
5,501 Expert Mod 4TB
Queries are your friend.
Forms and VBA are your tools.
Reports are your final product.

Normally, I would simply delete your thread; however, I also don't want to discourage you from participating in the forum.
So, with that in mind, Bytes is not a code nor homework service; however, if you already have code or SQL in the works and it isn't performing as expected then we can usually help.

Please read the FAQ and posting guidelines:
>> Before Posting (VBA or SQL) Code.
>> How to ask "good" questions -- READ BEFORE SUBMITTING A QUESTION!.
>> POSTING_GUIDELINES: Please Read Carefully Before Posting to a Forum.
Feb 20 '13 #2
Got it; your condescending attitude is noted. I didn't read the FAQ. I did an internet search and arrived at this forum. So I simply posed a question for something I am working on. But I do appreciate your quick, yet smug reply.

Rest assured, I certainly will not be knocking on this forum's door again. Consider me "discouraged".

@zmbd
Feb 20 '13 #3
zmbd
5,501 Expert Mod 4TB
Topotoole,

First, An apology; I had not intended to be "smug" or condescending; however, I can see how you might take it so.
From your post:
(Topotoole) I want to search a database by typing in the word/number I am looking for, then display any records associated with it; then I want to print only those records out in a report template. ()
In what way did my reply not answer your question:
(zmbd) Queries are your friend.
Forms and VBA are your tools.
Reports are your final product. ()
Your question is fundamental to the nature of what databases are designed to do – store, find, and report data. You query the data using either a parameter via the query itself or a form and either display the results in a form first or take it directly to a report. What you appear to be asking us to do here is blindly build you a generic project – that will not happen. Out right requests for full code are against site policy - Bytes is neither a code writing nor homework service. Which if you had read the FAQ and posting guidelines before posting your question you would have known.

Following (which show up in Google searches BTW)may help and there are ton of guides if you will scroll down to the bottom of this page and click on the insights site map (or click on the insights tab at top):
-filtering-
Microsoft Access / VBA Insights Sitemap
42.Cascaded Form Filtering
55.Multiple Combobox Filter with Clear Option
168.Example Filtering on a Form.

As for the remainder of your reply:
The tone is/was that of an angry child. Even if you didn’t like the response you received, something along the lines of: “Yes, I understand that; however, your reply is less than helpful to me as I have no background in database design or development.”

The mere fact that your “first” post went straight to forum without prior review shows our faith in new member’s abilities to read and understand the requirements for participating in this site and the expectation that new members will be able to ask a properly worded question.
Almost as important as a well worded question is that when confronted by an undesired reply by site moderator or one of the designated experts the member will respond as an adult/peer – not stamp their foot as a three-year-old and start name calling.
Failing/refusing to read a site’s posting guidelines and FAQ prior to posting anything is simply poor manners in this day and age – frankly, it is inexcusable unless you are over 65 and even then barely so… even my 85 year old neighbor knew enough to read thru the posting requirements and guidelines before posting on the forums he has joined.... then again... he comes from an age when respect for your peers, friends, teachers, and others was the norm and not the exception.
Feb 20 '13 #4
Noted. Thanks for the lesson and the information.
Feb 21 '13 #5
zmbd
5,501 Expert Mod 4TB
You're most welcome.
As tends to happen to best of us, as you hit the snags building your queries, forms, and reports please post back. Site requirements are that new questions are in their own thread.
Some things to keep in mind when posting:
Tables, if you will provide the table name(s), (the field name, data type, if it is a primary key, indexed, linked to other tables)
With the Queries, posting the actual SQL used is preferred over text - easily cut and paste from the SQL view of the query designer.
Forms, Controls are the parts of your forms/reports which are different from fields that are in your record sets. Controls are either bound to a field in the record source for the form/report (or the record-source for the control itself). It helps to have the naming conventions clear when posting a question.

best of luck
Feb 21 '13 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: epascual | last post by:
Have a couple of question from a newbie. Thanks in advance. How do I print Report called from a Form (or SubForm) using the current record on the Form (or SubForm). How can I do a multiple Form...
3
by: buck | last post by:
reports/ can we alternate formatting such as "no shading" and then "shading" for multiple records such as a phone directory in Access2000 reports
5
by: Tony Dong | last post by:
Hi there, I am newer for dot net I want to make a report and then print it, the report may include images and text, how can I do that, any one can give me a suggestion? I know how to...
4
by: Drum2001 | last post by:
My question is in reference to the following closed thread. ...
2
by: ken | last post by:
I have a form frmSchedule and report rptSchedule I need to print out records 4 to 7 of the rptSchedule when I hit cmdbutton on form I can get it to print report for current form Thank you for...
0
by: qudra | last post by:
Searching multiple records -------------------------------------------------------------------------------- Hi guys. I need ur help. In VB.NET we usually use this code to search the database...
2
by: HansyW | last post by:
Please help I m reading data and need to output to a file. For each record, I have a header and several details records. I need the header to be on one line, all the details on another line , and...
6
by: Dave | last post by:
On my form I have combo boxes. These combo boxes, after updating them, populate respective listboxes that are located below the combo boxes on the same form. I am trying to use a "generate...
8
by: jmarcrum | last post by:
Hello all, i have a continuous form that displays about 1000 records and opens when I click a button. When the form opens, the user has the option of checking a checkbox that is located beside...
1
by: sreenu123 | last post by:
How to insert multiple records into a database table that are entered into a datagridview. With a single shot of Save all the records in the datagridview should be updated using C# . Can any one help...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.