I don't think you should be copying code from a
VB application without knowing what you're doing. This:
Dim QCcon as New ADODB-connection
is
VB code where you can strongly declare a variable. In ASP you use late-binding, like this:
Dim QCcon
Set QCcon = Server.CreateObject("ADODB.Connection")
Also, instead of a - symbol, you need a dot between ADODB and Connection.
Whether you put this code in an include file or not is up to you. Both will work, and each will have their advantages.
But again, if you want to build a working application within the next month or so, I suggest you get a good book or web site. Any ASP or ADO book shows you how to connect to a database in a few pages. Struggling with code copied from a desktop app might take you ages, making things more expensive than the investment in a book.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.