General information
Category:
Forms & Form designer
Hi Ellen.
>> In the table, it stores M or F. With the combo box, I want to list male and female. How do I store a 1-digit code but display a description in the combo box? <<
For this example, specifically:
RowSourceType = 0-None
BoundColumn = 2
ColumnCount = 2
ColumnWidths = < width of combo >, 0
ControlSource = < table >.< Field >
This code goes in the combo's init:
This.AddItem( 'Female' )
This.List[ This.NewIndex, 2 ] = 'F'
This.AddItem( 'Male' )
This.List[ This.NewIndex, 2 ] = 'M'
This.AddItem( 'Unknown' )
This.List[ This.NewIndex, 2 ] = 'U'
Marcia
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only