Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 5th, 2004, 08:54 AM
mmd mmd is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to mmd
Default ok with VB6.0 , errors for ASP !!!

hi there ..
I'm coding a com object for asp ..when i run/debug this com object from a vb6.0 form , everything is ok .But it doesn't work with asp.
com reaches the db and makes a simple sql-query .. that's all .. here is the functions and iis error message ..
thanks
MMD

------------------------------------------
Error Type:
TFormer (0x800A029A)
Method '~' of object '~' failed
/aspcom/comdene.asp, line 39
-------------------------------------------
Private Sub conn_open_sql()
Dim str_conn As String
 Set cn = New ADODB.Connection
    str_conn = "Provider=SQLOLEDB;User Id=ABC;Initial Catalog=test;Data Source=ABC;Integrated Security=SSPI"
    cn.CursorLocation = adUseClient
    cn.Mode = 3
    cn.Open str_conn
End Sub
Public Function getFirmaRec(ByVal str_fname As String, ByVal str_fpass As String) As ADODB.Recordset
Dim str_querySQL As String
    conn_open_sql
    str_querySQL = "select * from tbl_firma where FIRMA_LOGIN='" & str_fname & "' AND FIRMA_PASS='" & str_fpass & "'"
    Set getFirmaRec = cn.Execute(str_querySQL)
    getFirmaRec.ActiveConnection = Nothing
    cn.Close
End Function
--------------------------------------------------------

 
Old February 5th, 2004, 11:53 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try putting Error handling in your COM dll. Put Error lines so you can see where the error occurs. Remember to raise the error out of the dll.

Yehuda





Similar Threads
Thread Thread Starter Forum Replies Last Post
asp errors with database recordset code dhx10000 Classic ASP Professional 0 June 27th, 2006 12:30 PM
RUN-TIME ERRORS IN MY VB6 APPLICATION Nadalik VB How-To 1 June 15th, 2006 11:18 AM
vb6 generated errors JENKINSACTIVE Beginning VB 6 1 February 15th, 2005 01:03 PM
Intercepting ADO Errors in VB6 mike123abc Pro VB Databases 1 January 28th, 2005 11:08 PM
SQL Errors - ASP Notification mindyjeanne All Other Wrox Books 0 September 27th, 2003 04:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.