Results 1 to 3 of 3
  1. #1
    dnlhmpt is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    4

    Reading row length

    I have searched and searched for this and have found similar issues but nothing quite like this.



    We are using Access 2010 to output a text file with records from our db. If everything go correctly all of the rows in the text file contain a different record and each row should be 599 chars in length. The issue is, if any data is missing from one of the records it will shorten the length of the row to less than 599 chars.

    Do any of you know if there is a way to get access to make the text file but then check it and let us know if any rows are less than 599 chars in length?

    Thank you

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Would have to read each row of data and test its length with Len function. How many fields are involved? Build a query that concatenates all the fields to one string and filter for any record where Len(string) <> 599.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    dnlhmpt is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2012
    Posts
    4
    Thank you very much.
    I did like you were saying and instead of reading the text file we just set it up to check the rows of the temp table before it is even exported. It works great now!

    Thank you again

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

Similar Threads

  1. Recommended Reading
    By Paul H in forum Access
    Replies: 1
    Last Post: 10-06-2011, 09:14 AM
  2. Reading values of a column
    By LAazsx in forum Programming
    Replies: 0
    Last Post: 11-25-2010, 06:05 PM
  3. Reading SQLite db files
    By Tim Heaton in forum Import/Export Data
    Replies: 2
    Last Post: 10-01-2010, 11:08 PM
  4. Reading outlook tasks from Access
    By Bill_dom in forum Import/Export Data
    Replies: 0
    Last Post: 08-07-2008, 06:02 PM
  5. Replies: 1
    Last Post: 01-10-2006, 12:32 PM

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