Squall Leonhart
12-03-2003, 06:22 PM
Hi, guys.
I want to ask you how to call function.
Please take a look at code.
<html>
<HEAD>
<SCRIPT LANGUAGE="VBSCRIPT">
Sub A1_OnClick
call whatever()
End Sub
</SCRIPT>
</HEAD>
<title>Create Excel on Server</title>
<body bgcolor="#FFFFFF">
<!--#Include file="functions.inc"-->
<INPUT TYPE=BUTTON NAME="A1" VALUE="A1 Create">
</body>
</html>
Clicking button will call the function in functions.inc file
-functions.inc
<%
Function whatever()
'Name of the access db being queried
accessdb="tech_re"
.......
End function
%>
But when I clicked the button, it says error message.
Type mismatch 'whatever'
But I checked spelling, nothing is wrong as you can see.
Can you guys see the problem? Thank you.
I want to ask you how to call function.
Please take a look at code.
<html>
<HEAD>
<SCRIPT LANGUAGE="VBSCRIPT">
Sub A1_OnClick
call whatever()
End Sub
</SCRIPT>
</HEAD>
<title>Create Excel on Server</title>
<body bgcolor="#FFFFFF">
<!--#Include file="functions.inc"-->
<INPUT TYPE=BUTTON NAME="A1" VALUE="A1 Create">
</body>
</html>
Clicking button will call the function in functions.inc file
-functions.inc
<%
Function whatever()
'Name of the access db being queried
accessdb="tech_re"
.......
End function
%>
But when I clicked the button, it says error message.
Type mismatch 'whatever'
But I checked spelling, nothing is wrong as you can see.
Can you guys see the problem? Thank you.