Wrox Programmer Forums
BOOK: Beginning Access 2003 VBA
This is the forum to discuss the Wrox book Beginning Access 2003 VBA by Denise M. Gosnell; ISBN: 9780764556593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Access 2003 VBA 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 7th, 2007, 12:00 PM
Registered User
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Having a problem in chapter 2

I've built the sample form and module on pages 29-39 and everything worked fine until I clicked the Run button. I received an error box stating as follows:

Run-time error '438':
Object doesn't support this property or method

The box has buttons for End, Debug, and Help

Help - doesn't. Debug, however seems to think there is a problem in the code. The code I've typed in following the example in the book is as follows (cut and pasted exactly from Visual Basic with Debug problem area highlighted by asterisks and all caps):

Private Sub cmdRun_Click()

'declare variables to store price and avail credit
Dim curPrice As Currency
Dim curCreditAvail As Currency

'assign variables to current values in text boxes on Form
curPrice = txtValue1 (***DEBUGGER SAYS THE PROBLEM IS HERE***)
curCreditAvail = txtValue2

'call VerifyCreditAvail procedure
VerifyCreditAvail curPrice, curCreditAvail

End Sub

I have done this exercise on two separate stand-alone computers with the same results each time.

There was a confusing bit on pgs 29-31 with steps 5 and 6, wherein step 5 said to change the Name in the properties for the text boxes to txtValue1 and txtValue2, but step 6 said lblValue1 and lblValue2. I used txt for this since it seemed that that was going to be the variable searched for by the code.

Is there something that I've missed or have other folks had this problem? And what is the solution?
Old August 9th, 2007, 10:30 AM
Registered User
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Never mind, y'all. I figured out what I did wrong. I had named the labels on the Form instead of the text box. (insert loud sucking sound from me dislodging my head from my...well, you get the idea.)

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem on Chapter 5 stzd8 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 November 25th, 2006 07:10 PM
Chapter 5 Problem gogeo BOOK: Beginning Access 2003 VBA 1 October 10th, 2005 10:34 AM
Problem in chapter 7 gpauta JSP Basics 1 June 1st, 2004 04:31 AM
problem in chapter 4 gpauta JSP Basics 3 May 11th, 2004 06:31 AM

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