473,386 Members | 1,886 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.

Lookup Tables/combo boxes

Hi all,

I am having difficulty adding to a lookup table; I want to be able to use a combo box to enter predefined values in a form/table, but also enter new values in that combo box. The dificulty is that the new values don't show in the combo box so that they can be selected auto the next time around. I have tried some code in the 'On Not in List' source properties, but I have small-average coding knowledge and hence have been unable to find a solution. Can anyone help?
Dec 21 '07 #1
3 1147
Minion
108 Expert 100+
Hi all,

I am having difficulty adding to a lookup table; I want to be able to use a combo box to enter predefined values in a form/table, but also enter new values in that combo box. The dificulty is that the new values don't show in the combo box so that they can be selected auto the next time around. I have tried some code in the 'On Not in List' source properties, but I have small-average coding knowledge and hence have been unable to find a solution. Can anyone help?

Couple questions come to mind here. First being what type of lookup are you using for the combo box? Is it pointed at a table for it's values or are they in an embedded list?

If it is a static list that you wish to add values to it can be done with a bit of coding. Though, I would have to throw something together as a lot of my knowledge is learned on the fly, but I know it's there. Either way it should be a simple matter to have the new values added to the list.

- Minion -
Dec 21 '07 #2
Couple questions come to mind here. First being what type of lookup are you using for the combo box? Is it pointed at a table for it's values or are they in an embedded list?

If it is a static list that you wish to add values to it can be done with a bit of coding. Though, I would have to throw something together as a lot of my knowledge is learned on the fly, but I know it's there. Either way it should be a simple matter to have the new values added to the list.

- Minion -
The list of parts is in a lookup table created in a table, where I have entered the list data in the lookup myself. As new parts are enetered via a form, I would like them to show up in the combo box so that I don't have to go to the properties/lookup and add each time a new part is added.

Thanks for your reply (sorry I think my previous post submitted accidently with nothing entered)
Dec 21 '07 #3
NeoPa
32,556 Expert Mod 16PB
You need to call a .ReQuery of the ComboBox control after you add an item. This will give it a chance to regrab the data from the table into the control.
Dec 21 '07 #4

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

Similar topics

3
by: my-wings | last post by:
I've been reading about how evil Lookup fields in tables are, but I've got to be missing something really basic. I know this subject has been covered before, because I've just spent an hour or two...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
4
by: Paul | last post by:
Hi, When should I use a list (in table properties: like Ford;Mercedes;BMW;Audi ) and when should I use a lookup table?? And second question: IF I use a lookup table, should I always make a...
1
by: James | last post by:
I am used to VB6 but need to develop something in .Net. I need to create several bound combo-boxes which will use lookup tables to get their values. I created a form using the dataform wizard....
4
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box...
0
by: dbuchanan | last post by:
Hello, For my datagrid I added a datagrid table style to include columns from my lookup tables. These display the values in the lookup tables rather than just the integer key value stored in the...
3
by: silvastein | last post by:
It would be great if someone can help me with this. It seems like it should either be easy (so far, not!) or maybe it isn't possible. Here goes: Table B has TextField1 that looks up values...
1
by: Nestor01 | last post by:
I use a lookup table which contacts 2 fields (item#, name) When a customer places an order, the order form contains a drop down to select the item by name (from the lookup table). The detail is...
1
by: hawk7890 | last post by:
I created an access database using access 2003 with lookup tables and I am having isues where my combo boxes on the form update the lookup table instead of the master table. I have a query to my...
1
by: freetime | last post by:
Greetings, This is my first post so I will try to be brief and accurate. I have a report that uses 9 user selectable filters (Dates, Y/N's as Combo Boxes and 4 Multi-Select List Boxes. ...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.