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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems submitting a form in a HTML page using MS Access 2000

Status
Not open for further replies.

jimtmelb1

Technical User
Sep 7, 2003
72
AU
Hi,
I have an Access 2000 database. I have a button which creates a text file in a default location called "search.html". This file contains a HTTP Post. I created a form with data from the database. When the user clicks the button, it creates this file and submits it too.

I have enclosed a couple lines of the code (below). I have used some javascript so onload the form is submitted. This can be seen in the code below. This works great with any version of IE except on machines that have WinXP Service Pack 2. When trying to submit with WinXP SP2 I get the folling message appear in the Information Bar.

"To help protect your security, Internet Explorer has restricted this file from showing active content that could access your computer"

Is there anyway I can get around this. Is there another way of doing the whole process. If anyone can give me any information I would much appreciate it. I am submitting a file that is local file on my machine.

Thanks
Jim

strFileContent = strFileContent & "<body bgcolor=#FFFFFF text=#000000 link=#FFFFFF alink=#FFFFFF vlink=#FFFFFF onLoad=" & Chr$(34) & "AnstatOnline.submit()" & Chr$(34) & ">" & vbNewLine

strFileContent = strFileContent & "<FORM NAME=" & Chr$(34) & "AnstatOnline" & Chr$(34) & " METHOD=POST ACTION= & vbNewLine
 
Have you tried an hta file ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top