Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Access 2007 VBA ISBN: 978-0-470-04684-5
This is the forum to discuss the Wrox book Beginning Access 2007 VBA by Denise M. Gosnell; ISBN: 9780470046845
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Access 2007 VBA ISBN: 978-0-470-04684-5 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 14th, 2007, 10:28 PM
Registered User
 
Join Date: Aug 2007
Location: Calgary, Alberta, Canada.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default I'm stumped

In chapter eleven, pages 287 - 305, the two sub functions 'ControlWord' and 'ControlOutlook' generates a compile error of 'User-defined type not defined'. The error is generated on the statement 'Dim rsContacts As New ADODB.Recordset'

I've double checked the code, copied the code from the site and pasted it in and still receive the same error. I've done the obvious such as checking that my table is set up as per the book and the sample from Wrox as well as ensured that the references in the book are enable and have the priority stacking the same, and again checked in the provided sample database.

The only difference I can find is that in the book the references point to the Access 2007 (beta) and I'm running a more up to date version since the printing of the book.

Any help would be greatly appreciated.


 
Old July 24th, 2008, 05:29 PM
Authorized User
 
Join Date: Jul 2008
Location: Portland, OR, USA.
Posts: 38
Thanks: 1
Thanked 2 Times in 2 Posts
Default

This is old, but just in case someone stumbles upon the same problem - Access 2007 has DAO enabled by default. You need to go set a reference to ADO in Tools > References in the VBA window before this code will work.


Thanks,

Bob Larson, Access MVP




Similar Threads
Thread Thread Starter Forum Replies Last Post
Stumped on XSLT template hayedid XSLT 8 December 19th, 2007 02:14 PM
Completely Stumped Admiral1701 Classic ASP Professional 6 December 5th, 2006 02:35 PM
Stumped, need XSLT Help foobar XSLT 3 July 3rd, 2006 11:07 AM
Stumped: Contains() Method Woes kwilliams XSLT 5 January 19th, 2006 06:44 PM
This program has stumped me, help! :) c0mpgeeksportsfan JSP Basics 1 December 5th, 2004 01:31 AM





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