Search the web
Sign In
New User? Sign Up
AspClassicAnyQuestionIsOk
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
type mismatch error OpenDB   Message List  
Reply | Forward Message #8580 of 8655 |
Re: type mismatch error OpenDB

Hi,

you forgot the "return" statement il OpenDB() function, you need to add this to
your function : set OpenDB = dbConn

Function OpenDB()
Set dbConn = Server.CreateObject("ADODB.Connection")
'dbConn.ConnectionTimeout = Application("dbConn_ConnectionTimeout")
'dbConn.CommandTimeout = Application("dbConn_CommandTimeout")
'dbConn.Open Application("dbConn_ConnectionString")

'**********************
Set OpenDB = dbConn
'**********************

End Function




Tue Jun 16, 2009 9:56 am

talbi_med_ett
Offline Offline
Send Email Send Email

Forward
Message #8580 of 8655 |
Expand Messages Author Sort by Date

Hello, I am geting the error Type mismatch: 'OpenDB' Below is the code, global.asa <SCRIPT LANGUAGE=VBScript RUNAT=Server> Sub Application_OnStart ...
shivam0101
Offline Send Email
Jun 16, 2009
3:42 am

Always try and use getrows for data retreival: http://www.learnasp.com/freebook/asp/whygetrows.aspx For your code to work you might want to uncomment this: ...
mischa kroon
aemca_san
Offline Send Email
Jun 16, 2009
7:54 am

Hi, you forgot the "return" statement il OpenDB() function, you need to add this to your function : set OpenDB = dbConn Function OpenDB() Set dbConn =...
TALBI Mohamed Ettaki
talbi_med_ett
Offline Send Email
Jun 16, 2009
9:57 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help