Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Putting text from a script into a MS Access DB

Status
Not open for further replies.

radar1

Technical User
Mar 29, 2002
1
US
I am trying to get info from a text file created from another application into a browser and then transfer that data into an Data Base

Here is what i Have so far

<html>

<head>
<meta NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft FrontPage 3.0&quot;>
<title>Customers</title>
</head>

<body>
<!-- Insert HTML here -->

<p>    </p>
<script language=&quot;VBScript&quot;>
Dim objFSO , strFile , objTextStream
Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
strFile = &quot;c:\program files\corex\cardscan\sidney.txt&quot;
If objFSO.FileExists(strFile) Then
Set objTextStream = objFSO.OpenTextFile(strFile)
Document.Write objTextStream.ReadAll
Set objTextSTream = Nothing
Else
Document.Write &quot;File does not exist&quot;
End If
Set objFSO = Nothing
</script>

</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top