Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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
  #1 (permalink)  
Old June 7th, 2004, 03:31 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Undefined function

Error Type:
Microsoft JET Database Engine (0x80040E14)
Undefined function 'IsDue' in expression.

I have seen this error a lot in the forums but have not found the fix for my situation. I have read the MS KB article Q189448 and it says to

"replace the Vbajet32.dll file version 5.0.0.7122 with file version 3.0.0.6098 that ships with Microsoft Data Access Components (MDAC) version 1.5. "

It doesn't look like 1.5 is avaiable any more. It also said

"This has been fixed in Visual Basic version 6.0."

Does anyone know what file I download to upgrade to this? I also included the ASP code, SQL of the stored Proceedure, and function in case I messed something up in there.

ASP:
Set oConn371 = Server.CreateObject("ADODB.Connection")
oConn371.Open strConnect
Set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = oConn371
cmd.CommandType = adCmdStoredProc
cmd.CommandText = "qryAutoSchedPM"
cmd.Execute

SQL Fromn stored proceedure:
SELECT tblPM.PMID, tblPM.MEIDKey, tblPM.PMDesc, tblPM.PMRecur, tblPM.PMLastCompleted, IsDue([PMRecur],[PMLastCompleted]) AS IsDue
FROM tblPM;

function:
Public Function IsDue(PMRecur As Integer, PMLastCompleted As Date) As String
    On Error Resume Next
   Dim strGap
    strGap = DateDiff("d", PMLastCompleted, Now)

    If strGap > PMRecur Then
        IsDue = "Yes"
    Else
        IsDue = "No"
    End If

End Function

Thanks
Dale


Similar Threads
Thread Thread Starter Forum Replies Last Post
Undefined function 'Left' in expression Morris Access 13 July 23rd, 2008 02:07 AM
Undefined Function Error arimakidd Beginning PHP 2 November 10th, 2005 02:54 AM
Call to undefined function mysql_connect() tks_muthu PHP Databases 2 June 14th, 2005 01:23 AM
undefined function vurtman ASP.NET 1.0 and 1.1 Basics 8 October 4th, 2004 01:32 PM
undefined function: mysql_connect() shabboleth Beginning PHP 2 September 18th, 2003 05:09 PM





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