Thanx Tom,
Unfortunately, I think I was not clear. Actually it is a SINGLE field. In
Design Form I selected the Data option "Lookup Wizard", then I selected two
columns. In first column I inserted numbers like 01, 02 03 .... and in the
second column I inserted their relevant entries like Choice A, Choice B,
Choice C...
While inserting data when I open the drop down both the columns are
displayed but when I choose any entry the result displayed in the same is 01,
02, 03...
Could the entry in any way be shown as both or
Only the second column, i.e. Choice A, Choice B, Choice C... ?
--
Thanx in advance,
Best Regards,
Faraz
:
Hi Faraz ,
A combo box that is not in dropped down mode will only display the first
visible column. The easiest way to display the second column, Account Title,
is to set the column width for the first column to 0 (zero).
If you want to display both columns, you will need to concatenate them into
one column. Something like this, as the row source for the combo box:
SELECT [Account ID], [Account ID] & " | " & [Account Title] AS Account
FROM YourTableName
ORDER BY [Account Title]
This query still has two columns, [Account ID] and the concatenated Account
info. You want the first column as the bound column, so that the Account ID
value is what will get saved. You need to specify the appropriate field to
save this data to as the Control Source property. It must have the same data
type and size as the [Account ID] field (use Long Integer if Account ID is an
Autonumber data type). Set the number of columns to 2, with column widths of
0, 1.5 so that the bound field will not be displayed.
Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
:
I have in field "Nature" set two columns to be looked into and presented in a
combo box, Column 1 showing the Account ID and Column 2 the Account Title.
However, when I select an entry only the first column, i.e. Account ID is
displayed. I want the entry to be either showing both or the second column's
relevant entry i.e. either:
Account ID | Account Title or
Account Title
Any suggestions/guidance?
--
Thanx in advance,
Best Regards,
Faraz