Wrox Programmer Forums
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 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 February 3rd, 2011, 12:50 PM
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
End Function
. Should this be
Set OpenRecordSetADO = rs
instead of
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.
Old February 3rd, 2011, 06:48 PM
gjgriffith's Avatar
Wrox Author
Join Date: Jul 2009
Posts: 110
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.


Geoffrey L. Griffith
Co-Author of the Access 2007 VBA Programmer's Reference

Last edited by gjgriffith; February 3rd, 2011 at 07:16 PM..

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 08: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 04:31 PM
Multiple Constructors Page 194 NUTSHELL BOOK: Beginning Java 2 2 February 5th, 2004 11:00 PM

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