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

Expected End error.......

Status
Not open for further replies.

Darkov

Technical User
Sep 28, 2000
1
GB
Upon executing the page it comes up with the error:

Microsoft VBScript compilation error '800a03f6'

Expected 'End'

/hfist/personal.asp, line 776

The code for the page can be found at
I've gone through it to the best of my knowledge, I am only a beginner, all the If, Then statements are Ended and the rest of the code is copied from another page that works fine. What am I missing? If you can help thanx.

[sig][/sig]
 
At ~ line 265 you have this:

If objRS("regiment") = 1 then
Response.write("Regiment1/")
If objRS("regiment") = 2 then
Response.write("Regiment2/")
Else
End If

My guess, from looking at the rest of the code, is that the second If (If objRS("regiment") = 2 then) should actually be an Elseif (Elseif objRS("regiment") = 2 then)


Hope this helps,
Gerald
[sig][/sig]
 
Your are right.You can eliminate ELSE statement altogether. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top