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

Combo Box Question

3
Hi

I have a combo box on a form that populates from a parameter query, so the list only contains items that match the search text. This is working fine, and supplies a list as required for the user to choose from. However, if the user wants to change the search string how do I get the combo box to run the query again ( display the parameter entry box) without closing and opening the form?

The query sql is:

Expand|Select|Wrap|Line Numbers
  1. SELECT [Project Progress Details].ProjectID, [Project Progress Details].[Project List]
  2. FROM [Project Progress Details]
  3. WHERE ((([Project Progress Details].[Project List]) Like "*" & [Input search word] & "*"));
which I have put in the Row Source of the combo box.


Thanks


Liz
Feb 9 '07 #1
3 2346
Rabbit
12,516 Expert Mod 8TB
What/Where is this parameter entry box you're talking about? Is it on the same form? On a different form? An InputBox?
Feb 9 '07 #2
ADezii
8,834 Expert 8TB
Hi

I have a combo box on a form that populates from a parameter query, so the list only contains items that match the search text. This is working fine, and supplies a list as required for the user to choose from. However, if the user wants to change the search string how do I get the combo box to run the query again ( display the parameter entry box) without closing and opening the form?

The query sql is:

SELECT [Project Progress Details].ProjectID, [Project Progress Details].[Project List]
FROM [Project Progress Details]
WHERE ((([Project Progress Details].[Project List]) Like "*" & [Input search word] & "*"));

which I have put in the Row Source of the combo box.


Thanks


Liz
Assuming your Combo Box is named cboTest, just Requery the Combo Box and you will receive your Parameter Prompt again as in:
Expand|Select|Wrap|Line Numbers
  1. Me![cboTest].Requery
Feb 10 '07 #3
NeoPa
32,556 Expert Mod 16PB
Liz, ADezii's answer should solve your problem perfectly.
Are you aware that you can code your SQL a bit more briefly (and use the standard quote) as :
Expand|Select|Wrap|Line Numbers
  1. SELECT ProjectID,[Project List]
  2. FROM [Project Progress Details]
  3. WHERE [Project List]) Like '*' & [Input search word] & '*'
Feb 10 '07 #4

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

Similar topics

3
by: NB | last post by:
Let's say in the product table I have around 50,000 products (well, infact it has now about 2000 only, but it's growing very fast, hence the question here) In the order form, users will select...
3
by: Marcus Canales | last post by:
Hello all, Here is my situation. I have a combo box on a form. The combo box is linked to a qry (qryCustomers) and the form is linked to tblOrders. The way I currently use the combo box is to...
8
by: Lyn | last post by:
Hi, Can anyone tell me how the initial value displayed in Combo Box is determined when a form is opened? I am loading the dropdown from one field ("CategoryName") of a table, with "ORDER BY ". ...
2
by: Gerry | last post by:
I have a combo box and I can populate it with my class of dat (the class allows me to store each userid,username called - see code below I want the user to select the dropdown and see the...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
9
by: Vmusic | last post by:
Hi, I'm using MS Access 2002. I have a form with a combo box built from a query that returns one column, and that one column is the bound column. How do you use VBA to programmatically change...
1
by: Shawn Yates | last post by:
It has been a while since I have done anything on MS Access and I seem to be a bit rusty. I hope someone could help me solve my issue. I have a form that has multiple combo boxes on it. Each box...
5
by: Bface | last post by:
Here are the other 2 questions I have. I forgot to mention I am on Access 2003/Windows XP. The second and third question I have is on Combo box. Can a combo box be used to access several documents...
2
by: Sid | last post by:
I need some help in setting up Access combo box. I am using three comboboxes in my form. Comb Box 1, Combo Box 2, Combo Box 3. The row source for each of the combo box is a seperate table. ...
2
by: biganthony via AccessMonster.com | last post by:
Hi, I decided to install Office 2003 Service Pack 3 on my home computer to test (in full knowledge that there may be some issues with it). After installation, I have noticed that with a small...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...

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.