luanhoxung wrote:
hi Salad !!
my string of text box from 1 field of table.
and noted that my textbox just display a string for the users in viewing.
it's not be store in any field.
thanks ur reply !
Luan from VietNam
It sounds like you are displaying human readable text based on the
value in the combination box.
As noted, you can use the Value property of the combination box to
execute a DLookup function and provide the data to the text box or you
could just set the RecordSource of the combination box to something
like:
Select MyTable.FieldIdentifier, MyTable.[Field you want the user to
see]
FROM MyTable;
and set the combination boxes's RowSourceType property to Table/Query,
the ListWidth property to 0";1", where the 1" is equivalent to whatever
space you need to see the entire field that the user will see on the
screen, and the BoundColumn property to 1.
This way your user will see the human readable value even though the
actual value of the combination box will be equivalent to
FieldIdentifier.
If you decide to use a seperate control to display the human readable
value, I would use a Label and set its Caption property to the human
readable value or use a TextBox and set its Locked and TabStop
properties to 'No'.