PC Review


Reply
Thread Tools Rate Thread

Two combo combo boxes on form to select specific report

 
 
=?Utf-8?B?Q2h1Y2tX?=
Guest
Posts: n/a
 
      12th Sep 2005
Hi,

I have two combo boxes on a form and a command button that runs a report.
The first combo box is called ComboCategory and the second if called
ComboProtocol. They are each based on a query that lists the various
categories and protocols. The report is based on a query that has a couple
field that includes Category and Protocol and each have some code in the
criteria section of the design layout that looks like the following for
category.

Like
IIf(IsNull([Forms]![SelectFacial]![ComboCategory]),"*",[Forms]![SelectFacial]![ComboCategory])

The code in the criteria section for Protocol looks like

Like
IIf(IsNull([Forms]![SelectFacial]![ComboProtocol]),"*",[Forms]![SelectFacial]![ComboProtocol])

What I would like to do is to somehow subset things on my form. Right now I
can select the category using the ComboCategory drop down and choose a
category. What I would then like to do is to click the drop down for
protocol and only get those protocols in the category I selected. Right now
I get all protocols from all cateogories. Is there a way to restrict my
selection so that I only get the protocols from the category I selected in my
ComboCategory combo box?

Thanks,



--
Chuck W
 
Reply With Quote
 
 
 
 
Barry Gilbert
Guest
Posts: n/a
 
      12th Sep 2005
I assume that the source table of the query for the Protocol combobox
has a category column. In the Protocol combobox's query, add the
following to the criteria line under the Category column:

=Forms![SelectFacial]![ComboCategory]

This will restrict the second combo to records with the category
selected in the first. This also assumes that a category needs to
always be selected first.

HTH,
Barry Gilbert

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo to select form then combo to select field for query buscher75 Microsoft Access Forms 1 23rd May 2008 11:34 AM
Need Sub form combo boxes to update form combo boxes =?Utf-8?B?em5pYms=?= Microsoft Access Forms 0 3rd Oct 2007 03:12 AM
Select from 2 Combo boxes on a form and print the report =?Utf-8?B?YXNoZmlyZQ==?= Microsoft Access Form Coding 2 27th Jun 2007 01:12 PM
basing TWO combo boxes on another combo box in a form. =?Utf-8?B?Z2VldmVzMTI5Mw==?= Microsoft Access Forms 6 21st May 2007 02:32 PM
Parameter queries using forms with combo boxes, with select all, and defaulting combo boxes to blank fields nmoakeh@byte-x-byte.com Microsoft Access 12 15th Oct 2006 07:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 AM.