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

Calling sub Form

Status
Not open for further replies.

mot98

MIS
Jan 25, 2002
647
CA
I am getting a strange error when calling a sub Form.

My Main code looks like this:

IF varSelect="ADD" Then
call addForm
ElseIf varSelect="EDIT" Then
call editForm
EsleIf varSelect="DELETE"
call deleteForm
End IF


When it goes to sub addForm I get an error saying:

Microsoft VBScript compilation error '800a0411'

Name redefined

/ASS3P1.asp, line 51

sub addForm()
----^


Why is this happening?

Any help would be greatly appreciated.

Thanks, mot98..[peace]

"Where's the beer?"
 
This function must exist more than once on the page, may be in a include file, also make sure its not the same as any variable names. Whenever I had this problem it was down to include files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top