Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > BOOK: Access 2003 VBA Programmer's Reference
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 18th, 2004, 03:52 PM
Registered User
Join Date: Aug 2004
Location: , TX, USA.
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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
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

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

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