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

I also have a compilation error

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Microsoft VBScript compilation error '800a0400'

Expected statement

/campbemr/default.asp, line 38

(CountAds(Category_ID)
^

What is an expected statement?
Here are my lines of code:

<%
Do While Not Crs.eof
Category_ID = Crs.Fields(&quot;ID&quot;)%>
<TR><TD width = &quot;50%&quot;><BIG><BIG><A HREF=&quot;viewads.asp?catID=<%=Crs.Fields(&quot;ID&quot;)%>&quot;><%=Crs.Fields(&quot;CategoryName&quot;)%></A> <SMALL>(<%(CountAds(Category_ID)%>)</SMALL></BIG></BIG>
<BR>

CountAds is a function that I created later in the page.
 
i believe your missing the assignment declaration ie;

(<%=(CountAds(Category_ID)%>)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top