Wrox Programmer Forums
BOOK: Access 2003 VBA Programmer's Reference
This is the forum to discuss the Wrox book Access 2003 VBA Programmer's Reference by Patricia Cardoza, Teresa Hennig, Graham Seach, Armen Stein; ISBN: 9780764559037
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Access 2003 VBA Programmer's Reference 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 18th, 2004, 03:52 PM
Registered User
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 17 - Using Unbound forms question

I've been reviewing the code on the frmShippers form for connecting an unbound form to an SQL recordset using ADO.

I've noticed that nowhere in the code are you closing the recordset or setting it to nothing. Again same with the connection. My understanding is that if you don't close the recordset and connection and set them to nothing, that you run the risk of corruption. Is there something different in the sample database that I'm not seeing, that keeps that from occuring?

I'm looking to use code similar to that in Chapter 17 pages 566 - 572. I'm not setting up a connection for the entire database like the sample database that I downloaded from the web site. For my example I'm connecting to the Northwind Database from within the form, so in my Form_Open sub, my connection string looks like this:

cnTest.ConnectionString = "driver={SQL Server};uid=sa;pwd=Password;server=TIMESLIP; database=Northwind"

Everything else is the same as the book, does this make a difference?

"The older you get
the more you know about yourself and what you want,
the less you let things upset you."
 - Lost in Translation

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 17 Web Forms phenom BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 11 August 6th, 2010 08:25 AM
Unbound Forms jeremy1048 Access 1 August 4th, 2008 01:26 PM
Web Forms - Chapter 17 lana BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 July 23rd, 2008 04:52 PM
Web forms loading - Chapter 17 InfinityLtd BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 0 May 22nd, 2008 09:21 AM
Web Forms *i think it's chapter 16 / 17?* ryan.webb BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 September 8th, 2007 09:38 AM

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