Results 1 to 3 of 3
  1. #1
    Euler is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2015
    Posts
    62

    Word table to Access table problem

    Hello,



    I've written some VBA code in Access that allows a user to select a Word file with one table in it and then goes through that table and imports the data from the second column. The problem is with the format of the data when it gets into the Access table. Each item of data has "[]" after it. I'd like to get rid of those brackets and just show the clean data in the table but I don't know how. Can someone help?

    Thank you.

    Sorry, I found a solution. I just used the Replace function to replace "" with "". It works so I'm good.
    Last edited by Euler; 03-02-2017 at 02:07 PM. Reason: I found a solution.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    take the data in between,
    sData = mid([field],2,len([field])-1)

  3. #3
    Euler is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2015
    Posts
    62

    Thanks for responding

    Quote Originally Posted by ranman256 View Post
    take the data in between,
    sData = mid([field],2,len([field])-1)

    Thanks
    for
    responding.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Move OLE Object from Access table to a Word Document
    By sneuberg in forum Programming
    Replies: 2
    Last Post: 07-18-2015, 11:55 AM
  2. Import Word Forms into Access Table
    By birth19 in forum Import/Export Data
    Replies: 6
    Last Post: 08-07-2012, 06:57 PM
  3. Linking Microsoft Word Form to Access Table
    By jrockusa in forum Access
    Replies: 1
    Last Post: 12-03-2009, 05:09 PM
  4. How do I get info from Access table to Word doc.
    By slim_jim_56 in forum Import/Export Data
    Replies: 0
    Last Post: 10-04-2007, 09:56 PM
  5. Importing a table created in word to Access
    By anthony_f_justin in forum Access
    Replies: 4
    Last Post: 01-04-2006, 09:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums