Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 14th, 2007, 11: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.


Reply With Quote
  #2 (permalink)  
Old July 24th, 2008, 06: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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 12:07 PM
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



All times are GMT -4. The time now is 10:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.