E
Erik Nordstrom
Hi
I have stored values in a access database together with a portion of different control names in my word document. What I wan't to do is to assign the values in the database to the different controls (i.e. textbox, checkbox etc) dynamically by getting the names from the DB
example (pseudo code)
rs = GET_ALL RECORDS_IN_DATABAS
while NOT rs.EO
rs("VALUE_of_FIELD_with_control_name").TEXT = rs("VALUE_OF_FIELD_WITH_TEXT"
RS.MoveNex
Wen
If I knew the name of the control I would writ
txtTextField.Text = rs("VALUE_OF_FIELD_WITH_TEXT"
But with 280 fields I want to do this in a loop
Thank you in advanc
Eri
I have stored values in a access database together with a portion of different control names in my word document. What I wan't to do is to assign the values in the database to the different controls (i.e. textbox, checkbox etc) dynamically by getting the names from the DB
example (pseudo code)
rs = GET_ALL RECORDS_IN_DATABAS
while NOT rs.EO
rs("VALUE_of_FIELD_with_control_name").TEXT = rs("VALUE_OF_FIELD_WITH_TEXT"
RS.MoveNex
Wen
If I knew the name of the control I would writ
txtTextField.Text = rs("VALUE_OF_FIELD_WITH_TEXT"
But with 280 fields I want to do this in a loop
Thank you in advanc
Eri