473,473 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Filtering using combo

Acc97.

I have a form which within a subform records machine down time. I have
a total of 8 machines. (1-2-3 ect.) What I have been doing is using a
combo box linked to the record table to select, the reasons based upon
generic terms.

The problem is that I have so many records now, that it takes more
time looking and picking out the correct fault reason than it does
completing the rest of the form!

so I need to speed up the whole process of selecting the applicable
reasons for down time.

I would like to do the following..

1) based upon the machine I selection the main form. say using a combo
box..
list the most occuring reasons in priority without limiting my
options.

therefore.. when I open the combo box for machine "A" in the down time
combo the first options visible in order of occurrence are the ones
which have historically been most applicable to machine "A" but also
not exclude the remaining generic reasons.

If some kind person would show me how to do this in the simplest way
possible.

Thanks,

Alex
Nov 12 '05 #1
1 2197
You could dynamically bring the most frequent reasons to the top by setting
the combo's RowSource to something like this:
SELECT ReasonID, Reason
FROM MyTable
GROUP BY ReasonID
ORDER BY Count(ID) DESC;

If you really want to show different reasons for each machine based on its
history, you could redesign the query above to do that, and assign it to the
RowSource of the combo in its Enter event.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Alex" <ge****@yas1.freeserve.co.uk> wrote in message
news:b7**************************@posting.google.c om...
Acc97.

I have a form which within a subform records machine down time. I have
a total of 8 machines. (1-2-3 ect.) What I have been doing is using a
combo box linked to the record table to select, the reasons based upon
generic terms.

The problem is that I have so many records now, that it takes more
time looking and picking out the correct fault reason than it does
completing the rest of the form!

so I need to speed up the whole process of selecting the applicable
reasons for down time.

I would like to do the following..

1) based upon the machine I selection the main form. say using a combo
box..
list the most occuring reasons in priority without limiting my
options.

therefore.. when I open the combo box for machine "A" in the down time
combo the first options visible in order of occurrence are the ones
which have historically been most applicable to machine "A" but also
not exclude the remaining generic reasons.

If some kind person would show me how to do this in the simplest way
possible.

Nov 12 '05 #2

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

Similar topics

3
by: Jason | last post by:
I am trying to filter records in a primary form based on records in related tables. The data in the related tables is being displayed in the primary form through subforms. To be more specific, I...
2
by: Sean | last post by:
Greetings all, I am attempting to make a form that will filter through several tables that (I believe) have refretial integrity. I am pulling data from several tables into the form and i would...
0
by: Scott Loupin | last post by:
I've got two databases with similar data in them (WestSide and EastSide). I've set up two identical reports that is filtered by date and the client name. I'm using one form to do the filtering. ...
1
by: MLH | last post by:
I have a form (xxxxxxxxxxxxxx) with a combo-box control (yyyyyyyyyyyyyy). The rowsource property for that combo box is as follows: SELECT DISTINCTROW ., . FROM ; The SQL for qryVehicleList...
1
by: hackerslacker | last post by:
I have an ordering form that use two combo boxes to filter down the records of a Products table. This worked fine with the after_Update of the first filtering the records and creating the...
2
by: Dev1 | last post by:
All- I'm new to this forum and i've been working with acces for about 2 days now. I have a form in which I have two combo boxes and depending on what is selected on the first dropdown the second...
4
by: novoselent | last post by:
This seems like it should be an easy thing, but I think I'm missing something simple here...or I'm just going about it all wrong... Using Access 2003 I have a form that lists vehicle service...
3
by: flymo | last post by:
Hello All, I've bee trying out access 2007 and have a weird issue and would like to see if I'm issing something really basic. I have a form based on a query, I create a combo to look for records...
5
by: RHooper | last post by:
Hi, I'm new to Access, so I apologize if this question is trivial. I am trying to set-up a quick filter for users to define on a form bound to a table. I have a combo box called...
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...
1
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
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...

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.