S
Stephen J. Levine MD
Using visual basic, I am trying to programmatically
create, in a table, a text field using a combobox for
lookup with the following properties:
Row Source Type = Value List
Row Source = "F;fixed;M;Mobile"
column count = 2
bound column = 1
column widths = 0.5;1.5
list width = true
limit to list = yes
I have tried to do this by setting the properties. They
appear to be set correctly by looking sequentially at all
properties for the field.
DisplayControl 111
Rowsourcetype ValueList
Rowsource F;Fixed;M;Mobile
ColumnCount 2
BoundColumn 1
ColumnWidths .5;1.5
LimitToList true
ListWidth 2.0
GUID ????????
However, when I go into the field in design mode, lookup
is still a text box, and when I change it to a combobox,
my other properties get changed as follows:
DisplayControl 111
Rowsourcetype Table/Query
ColumnCount 1
BoundColumn 1
LimitToList False
ListWidth 0twip
GUID ????????
ColumnWidth -1
ColumnOrder 0
ColumnHidden False
ColumnHeads False
ListRows 8
IMEMode 0
IMESentenceMode 3
UnicodeCompression False
How do I set the field in a table to be a combobox
programmatically with the properties I desire?
sjl
create, in a table, a text field using a combobox for
lookup with the following properties:
Row Source Type = Value List
Row Source = "F;fixed;M;Mobile"
column count = 2
bound column = 1
column widths = 0.5;1.5
list width = true
limit to list = yes
I have tried to do this by setting the properties. They
appear to be set correctly by looking sequentially at all
properties for the field.
DisplayControl 111
Rowsourcetype ValueList
Rowsource F;Fixed;M;Mobile
ColumnCount 2
BoundColumn 1
ColumnWidths .5;1.5
LimitToList true
ListWidth 2.0
GUID ????????
However, when I go into the field in design mode, lookup
is still a text box, and when I change it to a combobox,
my other properties get changed as follows:
DisplayControl 111
Rowsourcetype Table/Query
ColumnCount 1
BoundColumn 1
LimitToList False
ListWidth 0twip
GUID ????????
ColumnWidth -1
ColumnOrder 0
ColumnHidden False
ColumnHeads False
ListRows 8
IMEMode 0
IMESentenceMode 3
UnicodeCompression False
How do I set the field in a table to be a combobox
programmatically with the properties I desire?
sjl