Hey, i've just encountered a very strange problem with my open routine in one of my programs.

All its meant to do is open the given FileName, simply by putting it into Text1

Here is my routine, can anyone see where i have gone wrong ?

VB Code:
  1. Private Function Open_File(Filename As String)
  2. On Error GoTo Hell
  3.     Dim lFileLength As Long
  4.     Dim iFileNum As Integer
  5. 'Get a free file number and open the file
  6.     iFileNum = FreeFile
  7.     Open Filename For Input As iFileNum
  8.     'Get the length of the file and
  9.     'read it into the text box
  10.     lFileLength = LOF(iFileNum)
  11.     Text1.Text = Input(lFileLength, iFileNum)
  12.  
  13.     Close iFileNum
  14. Hell:
  15. End Function