B
Brad
I frequently create applications in Access with SQL Server or Oracle as the
backend and using linked tables either with a DSN or DSN-Less connection.
When I ship the application I have a procedure that creates the linked
tables after gathering the login credentials from the end-user. I have an
Access table containing all of the table names that are to be linked.
This works fine and all of the column definitions are read from the backend
database. I also pre-set the column widths by looping through the fields
and setting the width to the value stored in an Access table I ship
containing all of the column names and their widths (twips).
Now I want to create many comboboxes in the linked tdf and I'm thinking that
I need to ship an Access table containing the settings for each combobox
that are to be created. I believe I need to specify each of the properties
below.
TableName = Something
ColumnName = Something
DisplayControl = ComboBox
RowSourceType = Table/Query
RowSource = Select … from tablename where ...
BoundColumn = 1
ColumnCount = 4
ColumnHeads = TRUE
ListRows = 15
ListWidth = 7560twip
LimitToList = TRUE
ColumnWidths = 1440;3600;1080;1440
My question is wondering whether I'm going down the wrong path and also
wondering whether someone has already done this. It appears that the field
properties must be created since they do not exist for a regular text field.
The reason for shipping an unlinked application is because each end-user has
different connection settings and I cannot ship an mdb with the links
already created.
Brad
backend and using linked tables either with a DSN or DSN-Less connection.
When I ship the application I have a procedure that creates the linked
tables after gathering the login credentials from the end-user. I have an
Access table containing all of the table names that are to be linked.
This works fine and all of the column definitions are read from the backend
database. I also pre-set the column widths by looping through the fields
and setting the width to the value stored in an Access table I ship
containing all of the column names and their widths (twips).
Now I want to create many comboboxes in the linked tdf and I'm thinking that
I need to ship an Access table containing the settings for each combobox
that are to be created. I believe I need to specify each of the properties
below.
TableName = Something
ColumnName = Something
DisplayControl = ComboBox
RowSourceType = Table/Query
RowSource = Select … from tablename where ...
BoundColumn = 1
ColumnCount = 4
ColumnHeads = TRUE
ListRows = 15
ListWidth = 7560twip
LimitToList = TRUE
ColumnWidths = 1440;3600;1080;1440
My question is wondering whether I'm going down the wrong path and also
wondering whether someone has already done this. It appears that the field
properties must be created since they do not exist for a regular text field.
The reason for shipping an unlinked application is because each end-user has
different connection settings and I cannot ship an mdb with the links
already created.
Brad