472,373 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,373 software developers and data experts.

Limiting combo box rowsource and displaying them in continuous form

B
I know there are several ways to speed up combo boxes and form
loading. Most of the solutions leave rowsource of the combo box blank
and set the rowsource to a saved query or an SQL with a where clause
after users typed in one or several letters/digits.

My problem is as follows

Most of the time I need to display form in continuous format, that
means the combo box will appear in each record.
For example I have a form to let users view and input component mix of
a product.
The main form let users browse through existing product list and add
new product.
The subform (continuous form) then allows them to edit (and view) the
component structure of the currently selected product and to "build"
new products' structure by selecting the component (componentID is a
combobox)

The component list is now several thousands and growing. If I apply
the popular solutions to limit the rowsource of the combo, the form
will open up without info about component structure (because the combo
rowsources are blank). Also, after user start to type & select in a
record combo box , combo boxes in other records will become blank.

So the question is: Is there any way to speed up combo box, yet all
combo boxes in a continuous form still display their value?

Thanks in advance for any opinion
B
Nov 12 '05 #1
3 9164
Not really.

The combo only becomes blank on your continuous form if the bound column is
zero-width.

You should be able to load several thousand records into a combo.

If you are moving beyond that, consider changing the interface to a text
box, and check you got a match before accepting.

--
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.

"B" <bi**@myrealbox.com> wrote in message
news:4c**************************@posting.google.c om...
I know there are several ways to speed up combo boxes and form
loading. Most of the solutions leave rowsource of the combo box blank
and set the rowsource to a saved query or an SQL with a where clause
after users typed in one or several letters/digits.

My problem is as follows

Most of the time I need to display form in continuous format, that
means the combo box will appear in each record.
For example I have a form to let users view and input component mix of
a product.
The main form let users browse through existing product list and add
new product.
The subform (continuous form) then allows them to edit (and view) the
component structure of the currently selected product and to "build"
new products' structure by selecting the component (componentID is a
combobox)

The component list is now several thousands and growing. If I apply
the popular solutions to limit the rowsource of the combo, the form
will open up without info about component structure (because the combo
rowsources are blank). Also, after user start to type & select in a
record combo box , combo boxes in other records will become blank.

So the question is: Is there any way to speed up combo box, yet all
combo boxes in a continuous form still display their value?

Thanks in advance for any opinion
B

Nov 12 '05 #2
B L
Hi Allen

G'day

I thought we almost always need to set the bound column width = 0,
otherwise what users see in the form are only meaningless ID numbers??
(They want to see things like description of the component, name,
company, ...)

Can you elaborate more on using a textbox?

I can figure out like this:
- Put componentID in the subform as a textbox
- Make a command button to pop up a continuous form with all the
components
- When user find the wanted component and doubleclick on the record:
close that popup form (or hide only - to improve performamnce the next
time user use the form) and assign that componentID to the componentID
textbox

- But what about displaying meaningful text like component description?
How should I accomplish that without being awkward?

Thanks
B

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
Yes, it is common to have a zero-width bound column.
Because of the limitations in Access, I often don't though.
I use a meaningful text-based primary key and display it, specificially get
around this problem.

To display the description as well, create a query that contains both the
subform's table and the lookup table. (Use an outer join if the lookup field
can be Null). Add the Description from the lookup table to the query grid.
You can now display the description in a read-only text box beside the combo
where the user selects their item.

Remember that the blank combo problem only occurs when you have both a
limited RowSource and a hidden bound column. Avoiding either one solves the
problem.

--
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.

"B L" <bi**@myrealbox.com> wrote in message
news:3f*********************@news.frii.net...

I thought we almost always need to set the bound column width = 0,
otherwise what users see in the form are only meaningless ID numbers??
(They want to see things like description of the component, name,
company, ...)

Can you elaborate more on using a textbox?

I can figure out like this:
- Put componentID in the subform as a textbox
- Make a command button to pop up a continuous form with all the
components
- When user find the wanted component and doubleclick on the record:
close that popup form (or hide only - to improve performamnce the next
time user use the form) and assign that componentID to the componentID
textbox

- But what about displaying meaningful text like component description?
How should I accomplish that without being awkward?

Nov 12 '05 #4

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

Similar topics

2
by: Dave N | last post by:
I have a combo box that displays the names of all the users in my "Users" table. I set the RowSource to a Query from the "User" and "Project" tables. I can select any name from the list and that...
5
by: mik18 | last post by:
Is there a limit to the number of rows a combo box can contain within Access 2002? I have a list of drug names with all the NDC codes which contains over 200,000 records. I do have this filtered...
4
by: jcazmail-groups | last post by:
I have a child form that has a combo box whose underlying query needs to be filtered by a value from a combo box on the parent form. I have succeeded in doing this by putting the following SQL in...
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...
10
by: lorirobn | last post by:
Hi, I have a form with several combo boxes, continuous form format, with record source a query off an Item Table. The fields are Category, Subcategory, and Color. I am displaying descriptions,...
0
by: Jeremy Wallace | last post by:
Folks, Here's a write-up I did for our developer wiki. I don't know if the whole rest of the world has already figured out how to do this, but I hadn't ever seen it implemented, and had spent a...
9
by: cocacrispy | last post by:
I've read many forum posts and articles and haven't made any headway with this. Let me describe my tables and when I'm trying to do and see if any one can help me. I have an items table, a...
5
by: Kevin Wilcox | last post by:
In Access 2003 I have a continuous form with a combo. I'm trying to find a way to change the displayed values of the combo depending on whatever value was selected in the combo in the previous...
14
kcdoell
by: kcdoell | last post by:
Hello: I have a form (Default view =single form) with a subform (Default view =continuous forms) embedded into it. In the form I have three controls that display the Division, Working Region &...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
0
by: jack2019x | last post by:
hello, Is there code or static lib for hook swapchain present? I wanna hook dxgi swapchain present for dx11 and dx9.
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...

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.