I think the text file either contains a carriage return or line feed, but not the combination of them which is necessary for it to be displayed in a form control, and perhaps also for it to be recognized by the wizard. Would it by any chance originate from Unix/Mac?
Here's a short snippet that might help if my assumptions are correct:
[tt]dim fs as object
dim txtIn as object
dim txtOut as object
dim strFile as string
set fs = createobject("scripting.filesystemobject")
set txtIn = fs.opentextfile("c:\yourfile.txt",1) ' for reading
set txtOut = fs.createtextfile("c:\newfile.txt",true) ' overwrite
strfile = txt.readall
strfile = replace(strfile,vbcr, vbcrlf)
' or alternatively
' strfile = replace(strfile,vblf, vbcrlf)
txtOut.write strfile
txtIn.close
txtOut.close
set txtIn=nothing
set txtOut=nothing
set fs=nothing[/tt]
Couple of notes
- the Replace function doesn't exist in a97, use RickSpr's replacement functions from faq705-4342
- if memory serves me right, I think the scripting libraries aren't usually distributed with Office 97, but having IE 5.0 or higher would normally have installed it
- if you wan't to process the file trhough code, perhaps reading line by line (strLine = txtIn.ReadLine would give you one line, in the loop, just ensure you've got a criterion like this: do while not txtIn.AtEndOfStream)
- as usual, typed not tested
Roy-Vidar