Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select a selection box in word

Status
Not open for further replies.

loetje

Technical User
Jun 18, 2008
5
NL
I'm building a procedure that fills out a word form based on a form in Access. I used this guide ( to do it, and it works perfectly for text but not for selection boxes.

Here's an example of the code I use:

With doc
.FormFields("fldNaam").Result = Nz(Me!Naam)
.FormFields("fldIncidentReport").Result = Nz(Me!IncidentReport)
.FormFields("fldBusinessConsequen").Result = Nz(Me!BusinessConsequenties)

The second field, "fldIncidentReport" is a selectionbox. What is the command for marking this box?
 
Do you mean a multi-select listbox? If so, you will need to create a list of items selected, for example:

Code:
   For Each i In Me![List0].ItemsSelected
      List = List & ", " & Me![List0].ItemData(i) 
   Next i
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top