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: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3
This is the forum to discuss the Wrox book Access 2007 VBA Programmer's Reference by Teresa Hennig, Rob Cooper, Geoffrey L. Griffith, Armen Stein; ISBN: 9780470047033
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 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 February 3rd, 2011, 11:50 AM
Registered User
 
Join Date: Feb 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Page 194

I am not sure, but look in the first gray box of code, at the top of the page, at the last line before
Code:
End Function
. Should this be
Code:
Set OpenRecordSetADO = rs
instead of
Code:
Set CreateConnectionADO = rs
? It just seems that, if I am understanding the code correctly, "OpenRecordSetADO" and "CreateConnectionADO" are variables and "CreateConnectionADO" has not been declared, and "OpenRecordSetADO" has been declared but not used. Please let me know if I am wrong, and why the code works the way it is.
Reply With Quote
  #2 (permalink)  
Old February 3rd, 2011, 05:48 PM
gjgriffith's Avatar
Wrox Author
Points: 503, Level: 8
Points: 503, Level: 8 Points: 503, Level: 8 Points: 503, Level: 8
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2009
Location: Boulder, CO
Posts: 109
Thanks: 5
Thanked 14 Times in 14 Posts
Default Error on page 194

Hello poohbearmama657,

Thanks for your post here, it looks like the first post you made in these forums and we really appreciate the time and effort you've taken here to make this post. Also, and more importantly, you have uncovered an error in the book and I wanted to say thanks for pointing this out, this is actually a mistake in one of my chapters (though the source code download from the website has the correct code)!

Specifically, on page 194, the code "Set CreateConnectionADO = rs" is actually incorrect. The code should actually be "Set OpenRecordsetADO = rs", because this line of code is assigning the recordset object that was created to the function, to return the recordset to the caller of the function.

It is truly unfortunate that this error made it into the book, the source code on the Wrox P2P download site should be correct. Also, I have added this to the list of errata items for this book and again, I want to thank you for taking the time to point out this issue, I hope it has not caused any inconvenience for you.

Sincerely,

Geoffrey L. Griffith
Co-Author of the Access 2007 VBA Programmer's Reference
http://www.ImagineThought.com

Last edited by gjgriffith; February 3rd, 2011 at 06:16 PM.
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
canít open the page because the server where this page is located isnít responding m_alsobaai Forum and Wrox.com Feedback 3 July 15th, 2010 06:13 AM
How to print a web page without title, URL, page #, date and time Mattt C# 2 July 17th, 2009 03:02 AM
page 194, eval() problem keenlearner BOOK: Professional Ajax ISBN: 978-0-471-77778-6 2 December 16th, 2006 07:27 AM
CH7: RegExp Object PG 194 and 195 xZanU BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 5 January 12th, 2006 03:31 PM
Multiple Constructors Page 194 NUTSHELL BOOK: Beginning Java 2 2 February 5th, 2004 10:00 PM



All times are GMT -4. The time now is 04:07 AM.


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