SAS
07-27-2006, 04:47 PM
Hi
My forms currently are set up using CDONTS to send a mail and submit to an Access Database. I understand this is going to be depreceated so I've been trying to change them to CDO.
I can get the form to work fine if I just want to send to an email using CDO but when I connect it to a database as well I get
Microsoft VBScript compilation error '800a0400'
Expected statement
Software2.asp, line 74
Option Explicit
^
So I've looked around and also tried
<%@ Language="VBScript" %>
<% Option Explicit %>
<%
then it comes up with the following although it is on the first line
Active Server Pages error 'ASP 0140'
Page Command Out Of Order
Software2.asp, line 74
The @ command must be the first command within the Active Server Page.
I remove the cdo script and the form works fine to a database so I don't think the problem is there.
Script is in the attached
Any help would be absolutely great
Cheers Shona
My forms currently are set up using CDONTS to send a mail and submit to an Access Database. I understand this is going to be depreceated so I've been trying to change them to CDO.
I can get the form to work fine if I just want to send to an email using CDO but when I connect it to a database as well I get
Microsoft VBScript compilation error '800a0400'
Expected statement
Software2.asp, line 74
Option Explicit
^
So I've looked around and also tried
<%@ Language="VBScript" %>
<% Option Explicit %>
<%
then it comes up with the following although it is on the first line
Active Server Pages error 'ASP 0140'
Page Command Out Of Order
Software2.asp, line 74
The @ command must be the first command within the Active Server Page.
I remove the cdo script and the form works fine to a database so I don't think the problem is there.
Script is in the attached
Any help would be absolutely great
Cheers Shona