Microsoft VBScript runtime error '800a000d'

J

jojo

Hello,

I have an error: Microsoft VBScript runtime error '800a000d'

Type mismatch: 'OpenDB' and it says to go line 4 on the page with the error
here are the 1st 4/5 lines of code that I have

<%
If Request.Form("Operation") <> "Create" AND Request.Form("Operation") <>
"Edit" And Request.Form("Operation") <> "Print" Then

Call OpenDB(SQLConn)

Set RS = Server.CreateObject("ADODB.RecordSet")

'----- Find Number of questions
tempQuestionCount = SQLConn.Execute("Select Count(ID) From PM_Questions")
Session("QuestionCount") = tempQuestionCount(0)


Line 4 is Call OpenDB(SQL Conn)

Do you know what can be the problem ?
 
R

Ronx

SQLconn appears to be a variable with no value given to it.
The code should either be
Call OpenDB("SQLConn") where "SQLConn" is a string - perhaps the name
of a database,
Or you should assign a value to SQLConn before using it.

Example: SQLConn = "myDataBase"
The actual value depends on what the sub OpenDB does with it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top