473,386 Members | 1,997 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 with two tables?

Ok, I have table A with email address and primary key autonumber. the email addresses are stored here.
next i have table B with other information that i want stored and a form for it.
there is one combo box on the form and i can see the email addresses from tableA, but when it stores them in tableB, the field has the autonumber value not the actual email address which i want pulled from tableA for that specific record.

whats the correct way to get the address filed to store instead of the autonumber?

thanks
Oct 21 '09 #1

✓ answered by NeoPa

Look at the properties of the ComboBox.

Your .ControlSource property is fine, but you need to ensure that the .RowSource and the .BoundColumn properties are set up to match and to return the text value rather than the AutoNumber field.

You should be careful also to ensure .ColumnWidths is set correctly too.

3 2364
NeoPa
32,556 Expert Mod 16PB
Look at the properties of the ComboBox.

Your .ControlSource property is fine, but you need to ensure that the .RowSource and the .BoundColumn properties are set up to match and to return the text value rather than the AutoNumber field.

You should be careful also to ensure .ColumnWidths is set correctly too.
Oct 21 '09 #2
you sir are a genius.
it was the .boundcolumn that was giving me the trouble. I was unaware that the bound column is refering to the query built on the combobox, I thought it was looking at the table!
just solved 2 days of frustration.
Oct 23 '09 #3
NeoPa
32,556 Expert Mod 16PB
Very pleased it was that straightforward razoRjaw :)

Have fun with your project.
Oct 23 '09 #4

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

Similar topics

1
by: Terrance | last post by:
I'm hoping someone can help me with an issue. What's happening is I'm binding two datasets to a combo box from a dataset. The code is as follows: Try prodSet = New DataSet agenSet = New DataSet ...
5
by: Dalan | last post by:
I have been searching the archives in an effort to discover how to derive a dual use of a single combo box - so far no go. I found the piece below which pretty much represents the usage. To...
2
by: Sean | last post by:
Greetings all, I am attempting to make a form that will filter through several tables that (I believe) have refretial integrity. I am pulling data from several tables into the form and i would...
6
by: Brian Henry | last post by:
Here's an example of the code.. I have two combo boxes on screen that when one's selection is change the other's items will be updated to reflect the change (based on a relation) Private...
3
by: fstenoughsnoopy | last post by:
Ok the complete story. I have a Contact Table, Query and Form, that are used to input and store the contact info for customers. They have FirstName, LastName and Address as the primary key...
7
by: Ausclad | last post by:
Ok, ill try again..... It seems fairly simple. I have two combo boxes in a datagrid. The datagrid is bound to a a table in a dataset. The two combo boxes are bound to a single data table...
4
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
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. ...
4
by: Sep410 | last post by:
Hi All, I have problem with combo box. It is funny but I don't know what to do. When I load my form I load my combos with this Sub: Private Sub CityLoad() Dim sql As String ...
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:
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
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: 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
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
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.