Results 1 to 6 of 6
  1. #1
    Gene is offline Novice
    Windows XP Access 2000
    Join Date
    May 2009
    Posts
    7

    Replicate Fixed Width Import Functionality

    Hi all,

    I might be bitting off more then I can chew, but I have a need to replicate the Fixed Width import window functionality. The one where you can select the place in a text string that draws a line down the column in text box indicating the end of one field and the beginning of the next field for the entire text of the imported text file.

    I want to use this tool for parsing fixed width text data. Any clues on how to do this. I've tried everything I can think of using normal controls. Just can't seem to get a line drawn in a text box. I hope this is simpler then it seems.



    Thanks in advance.

    Gene

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    Why? Is there some reason why you cannot use the existing one?

  3. #3
    Gene is offline Novice
    Windows XP Access 2000
    Join Date
    May 2009
    Posts
    7

    Replicate Fixed Width Import Functionality

    I want to embed the functionality into an application I am building. Don't want the user to switch back and forth between two applications.

  4. #4
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    The files that are being imported, do you know what the fixed width lengths are going to be prior to the import. The reason for asking, is let's say you have mastered the art of replicating the wizard. How can you be confident that the user will place the markers between the correct fields? If you already know the sizes you can automate it.

    David

  5. #5
    Gene is offline Novice
    Windows XP Access 2000
    Join Date
    May 2009
    Posts
    7
    No I don't know the length. Each data set could be different. I just want to use the tool to help the user quess at what the begining and end of field data is. If they don't do it right, the application I am building will assist them in make the correct determination.

  6. #6
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    In theory this sounds fine. However I am a bit sceptical as to how you are going to determine if the place marker is in the wrong place. Even Access has not mastered that trick.

    Back in the days of Access 97 I remember certain wizards were installed on the machine with a different extension MDA I think and if you renamed this to an mdb you could actually open it as an Access mdb. This is because the wazards were writen in Access. If you can you could go down this route to see how they did it then. I am not promising anything it's just a thought that occured to me. I know I did this when creating a custom label report creator.

    David

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

Similar Threads

  1. The section width is greater than the page width?
    By Gary_Marshall in forum Reports
    Replies: 2
    Last Post: 11-13-2009, 01:54 PM
  2. Report like a fixed form
    By mikr in forum Reports
    Replies: 0
    Last Post: 08-30-2009, 12:25 AM
  3. Formatting Fields and Fixed Width Exporting
    By Panman01 in forum Access
    Replies: 1
    Last Post: 05-22-2009, 09:32 AM
  4. Replies: 0
    Last Post: 12-25-2008, 10:05 AM
  5. Use fixed height and width for the Access window
    By AndrewAfresh in forum Access
    Replies: 3
    Last Post: 07-05-2006, 09:20 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