[Solved] combo not allowing to copy value
Hi,
I am using the following code to generate a word document from a userform combo and textbox values and word Formfields
all works well transferring the records except Me.[Action Taken]
which even though the data is visible in the combo it will not transfer to the word doc. Other combos allow the transfer Me.[Type of misdemeanour] ect..but not Me.[Action Taken]
Me.Action_Taken.column(1) works if there is only on value
l tried loop all the values in the combo which were seleted but it just returned all the values.
The list is a typed array in Row Source
what could be the possible problem?
Hi,
I am using the following code to generate a word document from a userform combo and textbox values and word Formfields
Code:
Set Doc = appword.Documents.Open(Path, , True)
With Doc
.FormFields("txtstudent").Result = Me.Assigned_To.Column(1)
.FormFields("txtid").Result = Me.[ID]
.FormFields("txtopendate").Result = Me.Opened_Date
.FormFields("txtopenedby").Result = Me.Opened_By.Column(1)
.FormFields("txtassignedto").Result = Me.Assigned_To.Column(1)
.FormFields("txtstudent2").Result = Me.Customer.Column(1)
.FormFields("txtdescription").Result = Me.[Description]
.FormFields("txtmisdemeanor").Result = Me.[Type of misdemeanor]
.FormFields("txtlevel").Result = Me.[Level]
.FormFields("txtActionTaken").Result = Me.[Action Taken]' this doesn't work
.FormFields("txtassignedto2").Result = Me.Assigned_To.Column(1)
End With
which even though the data is visible in the combo it will not transfer to the word doc. Other combos allow the transfer Me.[Type of misdemeanour] ect..but not Me.[Action Taken]
Me.Action_Taken.column(1) works if there is only on value
l tried loop all the values in the combo which were seleted but it just returned all the values.
The list is a typed array in Row Source
what could be the possible problem?
Last edited: