473,657 Members | 2,450 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting up a Query Report that uses a Combo Box

I have a book database, and I have set up a query to search by
subject. As it is now, the searcher has to know the subject and type
it into the query. I wonder if there is a way to have a combo box
where the searcher can select the subject before running the query,
rather than consulting the separate subject list and typing the
subject in manually.

I have tried sticking the combo box in the report, but can't figure
that out. I think I need to change the query's criteria, and I know
how to link it to a combo box, but since I don't know where to put the
combo box, I don't know what combo box to link to. Can I put the
combo box in the report? How do I do that?

So my specific question is, how can I change the "type it in yourself
and hope it matches the subject table" method of querying to "select
from the drop-down menu"?

May 16 '07 #1
3 3300
put a combo box on a form and then reference that combo box in your query

<em*********@gm ail.comwrote in message
news:11******** **************@ l77g2000hsb.goo glegroups.com.. .
>I have a book database, and I have set up a query to search by
subject. As it is now, the searcher has to know the subject and type
it into the query. I wonder if there is a way to have a combo box
where the searcher can select the subject before running the query,
rather than consulting the separate subject list and typing the
subject in manually.

I have tried sticking the combo box in the report, but can't figure
that out. I think I need to change the query's criteria, and I know
how to link it to a combo box, but since I don't know where to put the
combo box, I don't know what combo box to link to. Can I put the
combo box in the report? How do I do that?

So my specific question is, how can I change the "type it in yourself
and hope it matches the subject table" method of querying to "select
from the drop-down menu"?

May 16 '07 #2
On 16 May 2007 13:50:42 -0700, "em*********@gm ail.com"
<em*********@gm ail.comwrote:
>combo box where the searcher can select the subject
I have a database with a Purchase Order Number PONum

On a PrintMain form, I have a POLook field for the PONum

In the query to product a report, I have in the PONum field

[forms]![PrintMain]![POLook]
May 16 '07 #3
"em*********@gm ail.com" <em*********@gm ail.comwrote in
news:11******** **************@ l77g2000hsb.goo glegroups.com:
I have a book database, and I have set up a query to search by
subject. As it is now, the searcher has to know the subject
and type it into the query. I wonder if there is a way to
have a combo box where the searcher can select the subject
before running the query, rather than consulting the separate
subject list and typing the subject in manually.

I have tried sticking the combo box in the report, but can't
figure that out. I think I need to change the query's
criteria, and I know how to link it to a combo box, but since
I don't know where to put the combo box, I don't know what
combo box to link to. Can I put the combo box in the report?
How do I do that?

So my specific question is, how can I change the "type it in
yourself and hope it matches the subject table" method of
querying to "select from the drop-down menu"?
Query? queries are for supplying data to forms, not for user
display. Make two forms, one to show your combobox, and a button
to execute the second form, to which you pass the results of the
first form as a filter. You can even make the second form look
like a query, but with all the added features offered by a form,
such as locking your data.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

May 17 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
13826
by: LouD | last post by:
How can i include a combo box in the criteria field in a parameter query
4
7817
by: Bob Sanderson | last post by:
I am using a form to select a table and then opening a report using the selected table as the record source. This is a simplified description of what I'm doing. First, cboSelectBOM selects the table from a list of tables in the database. Then, command button cmdPrintXref produces the following code: Private Sub cmdPrintXref_Click() ReportSource = cboSelectBOM DoCmd.OpenReport "rptPartNoXref", acViewPreview
4
7172
by: meganrobertson22 | last post by:
Hi Everyone- I have a question about how to add and then use the "All" selection in a combo box. I am trying to figure out how to: (1) add "All" as a selection to a combo box and then (2) how to use the selection "All" as criteria for a field in a query, which is used to generate data for a report.
18
2357
by: simonmarkjones | last post by:
Hi all, I create a report to act as a receipt to customers. The report displays all the customer payment details and then i print this. This works fine. However, i now want to add some more information to this page. But i cant seem to do it. The report uses a query to pull in the data from the form.I have a drop down on my form called costcode1
3
2265
by: Stig | last post by:
Hi, Any help on this one will be greatly appreciated as I have spent too long banging my head against the screen trying to get it sorted. Basically I would like to have a select all records option in a combo box that is used in an unbound form for my report parameter. I have tried to explain it in further detail below: - In my DB I have numerous forms are used to input details into a table (TblMasterTable).
6
1702
by: jim | last post by:
Is anyone able to provide me with a link to useful documentation or just outright explain to me how to set query parameters dynamically? I'm really new to Access and databases in general but I suspect that there is a way to insert criteria into a query besides opening it up and typing "and" and "or" on the criteria row of each column. I have a query that shows thousands of records (students in different classes taking different tests)...
6
6249
by: smcdonald | last post by:
I have a report that opens up using a pretty complex query. I then pop up a form with combo boxes so the user can apply a filter to the existing report and then refresh the report. I need to export the report's records with the applied query to excel in datasheet form and it needs to contain the additional filters that the user selects. The reports datasource is the original query. Right now I have this and get the datasheet format, but I...
5
2017
by: deaconj999 | last post by:
Hi, I have nearly finished my database and I would like to add a query that uses a combo box to get the results, not the usual paramater style input. I suppose it would need a form and a query and a combo box, but where to start !!!!!!!! Any kind soul out there that can give me an example of where to start..........?
4
3127
by: lorirobn | last post by:
Hi, I have a report displaying items that are missing from a room. I created 2 queries, the first getting the items IN the room, and the second being an "unmatched" query that references the first query where Item is Null. I use a subreport for the details, and the results display correctly. However, the Report_Details event of the subreport is executed about 2 or 3 times more than I would expect (I think 3 times when I have a
0
8325
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8518
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8621
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6177
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1971
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1734
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.