Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Posts
    56

    Unhappy Unanswered: Help! Sequential File Access

    Hi all,

    I am working with a VB application which sends and retrieves data from a textfile - when I lookup a record to return to the VB form, I get a 'Input Past End of File (Error 62)' message?

    Can anyone tell me how I am messing up? I know it is something really simple, but I do not work with VB that much, so any suggestions would be appreciated!

    Thanks,

    C.

  2. #2
    Join Date
    Mar 2003
    Posts
    12

    Re: Help! Sequential File Access

    Hi,

    Hope the below URL is of some help.

    http://support.microsoft.com/default.aspx?scid=KB;en-us;q142246

    Here is a possible solution - Use the EOF function immediately before the Input # statement to detect the end of file.

    Ex:

    Do while not EOF(file#)
    Line Input #1, ...
    .
    .
    .
    Loop
    Close #1

    Hope that helps.

    If it still doesn't work, please provide the code and let's try to sort it out.

    Srini.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •