Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL problem: How to select data from two columns in the same table and 1

Status
Not open for further replies.

JB83

Programmer
Oct 3, 2002
44
NL
Dear reader(s),

It looks like a very simple thing to solve, but I haven't seen a lightbulb yet :) I have a SQL / database problem in MS Access 2000: I don't know how to select data from 2 columns which are in the same table and put them into a combobox which shows data of these two columns.

The situation:
Code:
--------- Products ------¬
| OLD NAME   | NEW NAME  |
|------------------------
| productA   | productA  |  
| productB   | productA  |
| productA   | productB  |
| productC   | productD  |
| productD   | productE  |
--------------------------

The combobox will be:
Code:
-----------¬
| productA |
| productB |
| productC |
| productD |
| productE |
-----------

There has to be a possibility to select productA, productB, productC, productD and productE by the user.
Should I make a view or can it be done with a SQL command?

Thanks in advance,

Jochen.

 
mp9,

I have made some additional changes and now it works! Thanks for your reply! [2thumbsup]

Jochen.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top