Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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 August 25th, 2003, 12:22 PM
Registered User
 
Join Date: Aug 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to jadedinvasion Send a message via MSN to jadedinvasion
Default OpenRecordset Paramters

I'm currently trying to populate a list box with the results of a
query string. Everytime i've used open record set, a simple string name would suffice.

Now i'm using access 2000 and when i complie, the complier barks at me because i have 2 few paramters. I read the parameter list, and some of the parameters i dont understand, could anyone clarify it for me?

db.openrecordset([name as string],[type],[options],[lockedit])

do i need to import a libary to get the right parameter list or something?

thanks

 
Old August 25th, 2003, 01:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Make certain that you specify that the recordset is of type DAO.recordset. Access 2000 defaults to type ADODB.Recordset recordsets unless you specify DAO.

Usually the problem manifests itself as a library reference, but it could also show up as an invalid or missing parameter.

Rand
 
Old August 25th, 2003, 04:21 PM
Authorized User
 
Join Date: Jun 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You also have to ref. the DAO 3.6 dll

in the VBA-IDE Tools/references





Similar Threads
Thread Thread Starter Forum Replies Last Post
openrecordset problem Vince_421 Access VBA 3 April 4th, 2007 10:37 AM
db.OpenRecordset(strRecSrc, DB_OPEN_DYNASET) ppenn Access VBA 4 January 5th, 2006 11:18 AM
OpenRecordset And Run-Time Error 13 Type Mismatch Pavesa Access VBA 5 March 22nd, 2005 05:20 PM
Mismatch Error on OpenRecordset mikedu Access VBA 4 February 19th, 2004 11:36 AM
Passing paramters to Crystal 9 from vb6 Gazzoid VB Databases Basics 0 September 17th, 2003 07:45 AM





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