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

ASP Error - 'Page Command Out of Order'

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
Hello ASP experts -

Here I am... begging at the altar again :)

This is the run-time error:

"Active Server Pages error 'ASP 0140'
Page Command Out Of Order
/Forms/ISSystemsAccessWrite.ASP, line 4
The @ command must be the first command within the Active Server Page"

Thanks for any help. John
BTW, this error # is not listed in the ASP book I'm using;is there a good web site that explains all ASP erro codes?


This is my ASP code:

<!--#include file=&quot;ISSystemsAccessConnect.asp&quot;-->

<% @ Language=VBScript%>
<%
Dim sql

Dim strNameLast, strNameFirst, strNameMI, strPhoneW, strPhoneH, strPhoneFax
Dim intDept, strJobTitle, datCurDate
Dim blnNewWS, blnExWS, blnNewUser, blnExUser, blnMarcam, blnJDE, blnWMS
Dim blnPR, blnTA, blnNT, blnNTRoam, blnLNotes, blnCLaser, blnDialUp, blnModem
Dim strModelAS400, strModelNT, strLNotesGroup, strSRComments



strNameLast = Request.Form(&quot;NameLast&quot;)
strNameFirst = Request.Form(&quot;NameFirst&quot;)
strNameMI = Request.Form(&quot;NameMI&quot;)
strPhoneW = Request.Form(&quot;PhoneW&quot;)
strPhoneH = Request.Form(&quot;PhoneH&quot;)
strPhoneFax = Request.Form(&quot;PhoneFax&quot;)
intDept = Request.Form(&quot;Dept&quot;)
strJobTitle = Request.Form(&quot;JobTitle&quot;)
blnNewWS = Request.Form(&quot;NewWS&quot;)
blnExWS = Request.Form(&quot;ExWS&quot;)
blnNewUser = Request.Form(&quot;NewUser&quot;)
blnExUser = Request.Form(&quot;ExUser&quot;)
blnMarcam = Request.Form(&quot;Marcam&quot;)
blnJDE = Request.Form(&quot;JDE&quot;)
blnWMS = Request.Form(&quot;WMS&quot;)
blnPR = Request.Form(&quot;PR&quot;)
blnTA = Request.Form(&quot;TA&quot;)
blnNT = Request.Form(&quot;NT&quot;)
blnNTRoam = Request.Form(&quot;NTRoam&quot;)
blnLNotes = Request.Form(&quot;LNotes&quot;)
blnCLaser = Request.Form(&quot;CLaser&quot;)
blnDialUp = Request.Form(&quot;DialUp&quot;)
blnModem = Request.Form(&quot;NameLast&quot;)
strModelAS400 = Request.Form(&quot;ModelAS400&quot;)
strModelNT = Request.Form(&quot;ModelNT&quot;)
strLNotesGroup = Request.Form(&quot;LNotesGroup&quot;)
strSRComments = Request.Form(&quot;SRComments&quot;)

datCurDate = Date

sql = &quot;INSERT INTO SystemsAccessReqs (UserNameL, UserNameF, UserNameMI, UserPhoneW, UserPhoneH, UserFax,
Dept#, JobTitle, NewWS, ExistingWS, NewUser, ExistingUser, Marcam, JDE, WMS, PR, TA, NT, NTRoam, LNotes,
LNotesGroup, ColorLaser, DialUpAccess, Modem, ModelAS400, ModelNT, SerReqComments,
DateSubmitted) VALUES ('&quot; & strNameLast & &quot;', '&quot; & strNameFirst & &quot;', '&quot; & strNameMI & &quot;', '&quot; & strPhoneW & &quot;',
'&quot; & strPhoneH & &quot;', '&quot; & strPhoneFax & &quot;', &quot; & intDept & &quot;, '&quot; & strJobTitle & &quot;', '&quot; & blnNewWS & &quot;',
'&quot; & blnExWS & &quot;', '&quot; & blnNewUser & &quot;', '&quot; & blnExUser & &quot;', '&quot; & blnMarcam & &quot;', '&quot; & blnJDE & &quot;',
'&quot; & blnWMS & &quot;', '&quot; & blnPR & &quot;', '&quot; & blnTA & &quot;', '&quot; & blnNT & &quot;', '&quot; & blnNTRoam & &quot;', '&quot; & blnLNotes & &quot;',
'&quot; & blnCLaser & &quot;', '&quot; & blnDialUp & &quot;', '&quot; & blnModem & &quot;', '&quot; & strModelAS400 & &quot;', '&quot; & strModelNT & &quot;',
'&quot; & strLNotesGroup & &quot;', '&quot; & strSRComments & &quot;', '&quot; & datCurDate & &quot;');&quot;

conn.execute sql

%>





 
&quot;Active Server Pages error 'ASP 0140'
Page Command Out Of Order
/Forms/ISSystemsAccessWrite.ASP, line 4
The @ command must be the first command within the Active Server Page&quot;

It's exactly what the error says, the
<% @ Language=VBScript%>
line of code needs to be the first line on that page.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top