Results 1 to 2 of 2
  1. #1
    5pac3m0nk3y is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2017
    Posts
    11

    Import External Text File

    Hello,



    I'm trying to get the information contained in a PDF report into access. I've tried converting the PDF into numerous formats -- .txt, .html, .doc, .xml etc. But the problem is that I want to populate a database table with the columns as such: COURSE, START_DATA, END_DATE, NAME, COURSE_ID, STUDENT_STATUS. Any conversion I do always results in a header containing the course info, the start and end dates.

    There's an example in a screenshot attached.
    Click image for larger version. 

Name:	2017-04-18 (1).jpg 
Views:	10 
Size:	76.7 KB 
ID:	28298


    Since this is one example from a report with several hundred pages, manually editing the headers seems like a massive tasks.

    In the end it would look like a row of COURSE for every user rather than one instance of it on the top. How could you automate getting the COURSE info and the START_DATE, and END_DATE into Access?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Because this is a bad format, I would use excel VBA to import the text file,
    make the corrections (remove header footer) and create new columns : begin,end,capacity.
    THEN import the corrected excel file into Access.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-21-2016, 03:36 PM
  2. Code/function needed delete an external text file
    By Chris033115 in forum Programming
    Replies: 6
    Last Post: 03-31-2015, 02:09 PM
  3. import text file with text date
    By rody in forum Import/Export Data
    Replies: 5
    Last Post: 09-01-2014, 12:50 AM
  4. Replies: 3
    Last Post: 08-13-2014, 10:44 AM
  5. Import Text File
    By vvasudev in forum Import/Export Data
    Replies: 1
    Last Post: 02-17-2012, 01:57 AM

Tags for this Thread

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