473,544 Members | 713 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Filtering the two queries in two combobox

13 New Member
hello



now my problem i want make two combobox depend in diffrent queries the first combobox (brand name)filter the second combobox(models )

becouse if i make both of combobox depent in one queries
the brand name will be repeted by number of models

ex. i have three models of dell
in brand name of combobox i will have see three dell item

i try to make it with VB code but doesn't work!!
can any one help me with it??


thank you in advance...
Aug 10 '10 #1
5 1375
Aks 2010
13 New Member
up
up
up
up
Aug 10 '10 #2
dsatino
393 Contributor
In vba, open a recordset based on query that has the current Comp. make in the 'WHERE' statement. Loop through that recorset and the index value of the combo box and assign the recordset values along the way.
Aug 10 '10 #3
Aks 2010
13 New Member
hi dsatino

can you write the code for me
becuase today i was try to do it with recordset
but also doesn't work!!
Aug 10 '10 #4
dsatino
393 Contributor
sorry, don't have time
Aug 10 '10 #5
NeoPa
32,563 Recognized Expert Moderator MVP
This thread is now locked. It is a duplicate thread (which is extremely bad manners to those experts who've already tried to help you in the other thread. The difficulty there being your own unwillingness to put in even the basic levels of effort to answer questions rather than any lack of help from the experts). The other thread can be found at my problem with two dynamic combobox.

Please check out our FAQ before posting again.
Aug 11 '10 #6

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

Similar topics

2
3144
by: Luther | last post by:
I want to create a form that searches a table. The hard part is this, I'd like to have the available records filtered based on combobox selections. For example, if this were a vehicle database, I might want to filter by AutomobileType, Year, Make, Model, Color. In this case it would work like this: First all of the records are available,...
1
2468
by: Ken | last post by:
I wrote a function to use in queries that takes a date and adds or subtracts a certain length time and then returns the new value. There are times when my function needs to return Null values. Function DateCalc (blah...) As Variant Do Stuff... If Not IsNull(varNewDate) Then DateCalc = varNewDate End If End Function
0
2010
by: Jason | last post by:
I have a primary form which is used to enter/edit data in a table named Test_Results. On this primary form there is a subform which displays site addresses. This subform is linked to the primary form by field named TestID. The subform is used just for displaying site address data, data which is stored in another table named...
1
2614
by: Seth Delaney | last post by:
I have a form with a combobox and a list box. The combobox will list records (names of queries) that are entered in a table called tblListName. I have the combobox set to get its values from this table. tblListName has two fields: ListName and QueryName where QueryName is the actual name of the query and ListName is a "friendly name" to be...
3
2733
by: Zlatko Matiæ | last post by:
Hello. I'm wondernig what is happennig whith saved pass-through queries nested in regular JET query if regular JET query just filtrates result by start/end date...Does pass-through query first returns all rows from server and then JET filtrates result by start/end date, or JET first communicates with server so that server returns only those...
8
1958
by: Steve B. | last post by:
My Program: a local C# ADO.Net application using VS 2003 Right now I have about 5 ComboBox's which provides drop down selection entries from the same MS-Access table via a DataConnection, DataAdapter and DataSet datasource. Each CB has it's own DA and DS. When I tried to use the same DS as the datadource for each of the five CB's, changing...
3
1452
by: Tim Ford | last post by:
People, I trying to write a lookup combobox that gets it's data via a sql table. I can populate the combobox with the information and have handled all the filtering, how ever i can't seem to add a blank row to the combobox, i have tried adding via the datatable and i can't seem to get that to work. However is there a way via the...
2
1629
by: Becker | last post by:
I have a need for a simple combobox on a form in one of my programs that represents city, state. I want to have it autocomplete as the user types. I have a table with these values (about 50k of them) and I'd like to source it from there. I have seen some methods out there for the autocomplete, but I think that pulling 50k in the combobox...
2
1597
by: Dorish3 | last post by:
I want to apologize ahead of time for being a novice with MS Access and VBA. I desperately need help with 2 queries that I am trying to put together. I want to thank anyone that can help me out with this situation. I want to put a select query(Query1) that uses one table and the criteria would be . When an event number is entered it...
5
5039
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 cboSearchCriteria from which users can select the field they wish to filter by and a text box called txtSearch into which they can specify criteria. The user then...
0
7439
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7376
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...
0
7633
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7395
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...
0
7722
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...
0
5935
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5310
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...
0
4932
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...
0
3425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.