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: Beginning Access 2003 VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 August 7th, 2007, 12:00 PM
Registered User
 
Join Date: Aug 2007
Location: San Antonio, TX, USA.
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?
Reply With Quote
  #2 (permalink)  
Old August 9th, 2007, 10:30 AM
Registered User
 
Join Date: Aug 2007
Location: San Antonio, TX, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.)
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
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 06: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



All times are GMT -4. The time now is 02:53 AM.


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