Wrox Programmer Forums
|
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
 
Old October 2nd, 2004, 12:58 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default error while excuting access query (having macros)

Hello

  I have following sql statement saved as a query.
  SELECT * FROM tbl_booking WHERE func_compare_date([pick_up_date]) =TRUE;

   Where func_compare_date is a function created uder module tab in microsoft access.

  This query is working perfectly while executing it from Access itself.

  But when I tried to call this from ASP ( code as under) it showed me following error.

  func_compare_date is undefined..

ASP Code :
        Dim cmd_bookings
    set cmd_bookings=Server.CreateObject("ADODB.Command")
    set cmd_bookings.ActiveConnection=cnn_chauffeurcar
    cmd_bookings.CommandType=adcmdStoredProc
    cmd_bookings.CommandText="qry_pick_up_date"
    Set rst_bookings = cmd_bookings.Execute()



Shibu

__________________
Shibu Narayanan
Software Associates
 
Old October 2nd, 2004, 06:22 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Shibu,

Check out this thread. A similar problem has been discussed there.

undefined function

BTW, what is that function doing in turn? Why not do that within ASP, instead of using a function within that query?

Cheers!

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL query on Access db giving error DesignsOnline.co.uk Access 2 November 17th, 2006 05:06 PM
Insert into error with union query in Access 2002 roniestein Access 8 December 21st, 2004 07:47 PM
Syntax error in query. Incomplete query clause. dispickle ADO.NET 3 April 16th, 2004 01:04 PM
Macros vbprogwb Access VBA 21 November 12th, 2003 05:18 PM
Error on Make-Table Query In Union Query rylemer Access 1 August 20th, 2003 07:42 PM





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