J
Jonathan Blitz
I have a combo box which is defined as based on a table.
This works ok. It displays the text column and saves the index column as I
require.
However, in my VBA code I replace the rowsource with an SQL statement. When
I do this it displays the index column after a value is selected instead of
displaying the text column.
Funny thing is that I have another version of the same form which does work.
The only change I made was to the SQL statement in the VBA code.
The change was to make the statement a join.
I though that maybe the join was confusing it so I changed the SQL statement
to an extra level so that the top level is selecting from one table.
The other point is that the new SQL statement displays more than one column
whereas the previous one only displayed one.
So, what do I do to get it to display the correct column?
--
Jonathan Blitz
AnyKey Limited
Israel
"When things seem bad
Don't worry and shout
Just count up the times
Things have worked themselves out."
This works ok. It displays the text column and saves the index column as I
require.
However, in my VBA code I replace the rowsource with an SQL statement. When
I do this it displays the index column after a value is selected instead of
displaying the text column.
Funny thing is that I have another version of the same form which does work.
The only change I made was to the SQL statement in the VBA code.
The change was to make the statement a join.
I though that maybe the join was confusing it so I changed the SQL statement
to an extra level so that the top level is selecting from one table.
The other point is that the new SQL statement displays more than one column
whereas the previous one only displayed one.
So, what do I do to get it to display the correct column?
--
Jonathan Blitz
AnyKey Limited
Israel
"When things seem bad
Don't worry and shout
Just count up the times
Things have worked themselves out."