views:

17

answers:

1

does anyone know how to add a TEXTBOX onto a word 2007 document. i need to gather user input and after the form is filled out, the data will be added into an access database

thank you!

+1  A: 

Word supports different kind of text input fields:

  • "legacy" input fields that are implemented using Word fields:

    Selection.FormFields.Add Range:=Selection.Range, Type:= wdFieldFormTextInput
    
  • ActiveX controls:

    Selection.InlineShapes.AddOLEControl ClassType:="Forms.TextBox.1"
    
  • Content controls (Word 2007 or later):

    Selection.Range.ContentControls.Add (wdContentControlText)
    
0xA3
thanks! now maybe you can answer this q: http://stackoverflow.com/questions/3321449/adodb-connection-to-accdb-file
I__