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 March 17th, 2005, 10:21 AM
Registered User
 
Join Date: Mar 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing parameters to a In([MyParameter]) function

Hi, I'm new to the forum so hope this is in the right place.

I'm trying to pass some parameters to a two part query in Access.

The problem is i need to use the in() function in the query and i can't get the syntax right.

Code:
Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
    Conn.Open strConn
       set rsP=createobject("adodb.recordset")
    conn.QRY_COUNT_PATIENTS_AUDITED StrCBIDs,vSD,vED,rsP


StrCBIDs would look something like 19,20 which would normally be fine if i stuck it straight into the Access query but it's not working correctly - to be exact it's turning up an empty recordset -.

If i replace StrCBIDs with an integer i.e 19 then it works fine so it's got to be a problem with 19,20...,etc but i don't know what.

Any ideas would be gratefully received.

Thanks

R.






Similar Threads
Thread Thread Starter Forum Replies Last Post
passing parameters fizzerchris Access VBA 5 August 31st, 2007 12:16 PM
Passing parameters ceema Crystal Reports 0 February 15th, 2006 04:03 AM
Passing Parameters to a function atcs2152 Ajax 4 December 22nd, 2005 09:12 AM
passing empty parameters to a js function crmpicco Javascript How-To 0 September 20th, 2005 10:16 AM
passing parameters spraveens Javascript How-To 1 October 8th, 2003 03:14 AM





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