473,396 Members | 1,766 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,396 software developers and data experts.

38 Combo Box's into one criteria

ChaseCox
294 100+
I would like to take a model # and divide each alpha-numeric value into its own combo box. I would then like to filter the column where the model numbers are by the values in each of the combo boxes. They need to remain in order, 1 - 38. Does anyone know how to do this?
Nov 30 '06 #1
5 1235
ChaseCox
294 100+
To add onto what I was saying, this is what I am trying to do.
m 4 0 blank
combo1 combo2 combo3 combo4


If I wanted the person using the form to be able to select all possible 38, or just 3 or 4, How would that need to be coded. something like

combo1combo2combo3 or combo1,combo2,combo3, I need some serious help with this one.
Nov 30 '06 #2
ChaseCox
294 100+
To add onto what I was saying, this is what I am trying to do.
m 4 0 blank
combo1 combo2 combo3 combo4


If I wanted the person using the form to be able to select all possible 38, or just 3 or 4, How would that need to be coded. something like

combo1combo2combo3 or combo1,combo2,combo3, I need some serious help with this one.

I figured it out. Thanks though, here is my solution

SELECT [Odyssey Mat Baseline 5_31_06].PART_PART_NBR, [Odyssey Mat Baseline 5_31_06].PROD_CODE, [Odyssey Mat Baseline 5_31_06].[SHIP DATE], [Odyssey Mat Baseline 5_31_06].[CLAIM DATE], [Odyssey Mat Baseline 5_31_06].[DATE STARTED], [Odyssey Mat Baseline 5_31_06].[DATE FAILED], Mid([ORDERED_MODEL],1,38) AS Expr1
FROM [Odyssey Mat Baseline 5_31_06]
WHERE ((([Odyssey Mat Baseline 5_31_06].PART_PART_NBR) Like ("*" & [Forms]![Form1]![cmbpn] & "*")) AND (([Odyssey Mat Baseline 5_31_06].PROD_CODE) Like ("*" & [Forms]![Form1]![cmbpc] & "*")) AND (([Odyssey Mat Baseline 5_31_06].[SHIP DATE]) Between [Forms]![Form1]![cmbsd] And [Forms]![Form1]![cmbed]) AND (([Odyssey Mat Baseline 5_31_06].[CLAIM DATE]) Between [Forms]![Form1]![cmbcd] And [Forms]![Form1]![cmbcde]) AND (([Odyssey Mat Baseline 5_31_06].[DATE STARTED]) Between [Forms]![Form1]![cmcsd1] And [Forms]![Form1]![cmcsd2]) AND (([Odyssey Mat Baseline 5_31_06].[DATE FAILED]) Between [Forms]![Form1]![cmcfd1] And [Forms]![Form1]![cmbfd2]) AND ((Mid([ORDERED_MODEL],1,38)) Like ("*" & [Forms]![Form1]![cmbm1] & [Forms]![Form1]![cmbm2] & [Forms]![Form1]![cmbm3] & [Forms]![Form1]![cmbm4] & [Forms]![Form1]![cmbm5] & [Forms]![Form1]![cmbm6] & [Forms]![Form1]![cmbm7] & [Forms]![Form1]![cmbm8] & [Forms]![Form1]![cmbm9] & [Forms]![Form1]![cmbm10] & [Forms]![Form1]![cmbm11] & [Forms]![Form1]![cmbm12] & [Forms]![Form1]![cmbm13] & [Forms]![Form1]![cmbm14] & [Forms]![Form1]![cmbm15] & [Forms]![Form1]![cmbm16] & [Forms]![Form1]![cmbm17] & [Forms]![Form1]![cmbm18] & [Forms]![Form1]![cmbm19] & [Forms]![Form1]![cmbm20] & [Forms]![Form1]![cmbm21] & [Forms]![Form1]![cmbm22] & [Forms]![Form1]![cmbm23] & [Forms]![Form1]![cmbm24] & [Forms]![Form1]![cmbm25] & [Forms]![Form1]![cmbm26] & [Forms]![Form1]![cmbm27] & [Forms]![Form1]![cmbm28] & [Forms]![Form1]![cmbm29] & [Forms]![Form1]![cmbm30] & [Forms]![Form1]![31] & [Forms]![Form1]![32] & [Forms]![Form1]![33] & [Forms]![Form1]![34] & [Forms]![Form1]![35] & [Forms]![Form1]![36] & [Forms]![Form1]![37] & [Forms]![Form1]![38] & "*")));
Nov 30 '06 #3
NeoPa
32,556 Expert Mod 16PB
Must this be a static SQL string.
If you set this up using VBA from within the form's module, then you can append only the relevant parts of the WHERE clause - leaving out any which are not selected on the form.
This can have huge performance advantages when working with large tables.
I'm pleased to hear you've got it working anyway.
Dec 1 '06 #4
ChaseCox
294 100+
Must this be a static SQL string.
If you set this up using VBA from within the form's module, then you can append only the relevant parts of the WHERE clause - leaving out any which are not selected on the form.
This can have huge performance advantages when working with large tables.
I'm pleased to hear you've got it working anyway.

how would you do that?
Dec 1 '06 #5
NeoPa
32,556 Expert Mod 16PB
That depends so much on what you want.
What do you have now?
Dec 1 '06 #6

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

Similar topics

3
by: pelcovits | last post by:
I am trying to set up an unbound form to enter report criteria. I've followed the MS Office Assistance document: "Create a form to enter report criteria" which describes how to enter data (such...
1
by: BigJay | last post by:
I am 1. trying to have a combobox used as a selector to display records in a subform. and not sure on how to get selected info into subform.the combo is populated but can not get subform updated...
4
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)...
3
by: Stewart | last post by:
Hi all! My (relatively small) database holds data on staff members and the projects (services) that they are assigned to. In my form frmStaff, I have a list of staff members - it is a...
3
by: hmiller | last post by:
Hey everyone, I am having a hell of a time trying to set this menu system up. Here's what I'm trying to do. Combo Box One; is populated by names under properties "row source" "Phase 1"...
2
by: Dave | last post by:
>From a combo box the user can select a supplier. They then click the order button and are then taken to the orders page. From here comes the problem, I want the user to select a combo box unique...
3
by: ericargent | last post by:
Hi I'm using Acces 2003 I have Query where the several parameters for the criteria are supplied from a form. One parameter source is a combo box. What I am trying to do is if: An item is...
4
by: Swinky | last post by:
I am trying to make a combo box dependent on a text box. I cannot get the combo box to pull the related data from the text box. I have been all over this user group & have tried several versions...
2
by: SHAWTY721 | last post by:
I have a form that contains two combo boxes that are related to each other. I need to find a way to populate my text box based on the criteria of the two combo boxes so the appropriate number...
2
by: franc sutherland | last post by:
Hi, I am using Access 2003. I am having a problem with a pair of combo boxes. I want the second one (cbo_service) to have it's row source limited by the value I select in the first one...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.