Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 Databases by Thearon Willis; ISBN: 9780764588945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 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 23rd, 2009, 01:50 AM
Authorized User
Points: 68, Level: 1
Points: 68, Level: 1 Points: 68, Level: 1 Points: 68, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in project time tracker

I downloaded and unzipped the Project Time Tracker software.

I entered the subLoaad projects software listed on pages 109 and 110 of "Beginning Visaul Basic 2005 Databases.

After the software entry, I noticed an error indicator (wavy blue line) under the term "ExceptionIErr.Message". I ran the program and the message box informed me there were compile errors. The compiled error message box said "ExceptionErr not declared."

how do I correct this?

Do I include import statements at the start of the class?

Greenbriar
 
Old February 23rd, 2009, 06:47 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 166
Thanks: 2
Thanked 33 Times in 33 Posts
Default

Hi greenbriar,
I don't own the book so forgive me if I am looking in the wrong place, but I assume you are looking at Sub LoadProjects in Admin.vb in Chapter 6 or 7?

Code:
Private Sub LoadProjects()
    'Declare variables
    Dim objListViewItem As ListViewItem

    'Initialize a new instance of the data access base class
    Using objData As New WDABase
        Try
            ' ... Project load code ...
        Catch ExceptionErr As Exception
            MessageBox.Show(ExceptionErr.Message, strAppTitle)
        End Try
    End Using

    'Cleanup
    objListViewItem = Nothing

End Sub
The code download says that ExceptionErr is the name given to the exception variable in the Try...Catch block, so it looks like you've just got a typo in your code - I did notice in your post you called it ExceptionIErr, so it may just be the extra "I" which needs to be removed.
If not, please post your complete LoadProjects method so we can take a proper look.

Phil
 
Old February 23rd, 2009, 09:16 PM
Authorized User
Points: 68, Level: 1
Points: 68, Level: 1 Points: 68, Level: 1 Points: 68, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem in project time tracker

Hi Phillip;

Tnx for the quick reply. I went back and checked the program and found that there was an error in the "Catch" line preceding the MessageBox line. Corrected the spelling and everything worked as it was supposed to.

I concentrated on the MessageBox line not realizing that the term "ExceptionErr" appeared in another line in the program.

Bob





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help - How to create a Login tracker? melvados Visual Basic 2005 Basics 3 August 4th, 2008 09:07 AM
Error Creating Project Time Tracker Database flashmanTom SQL Language 0 January 15th, 2008 04:09 PM
Problem with creating SQL Project Time Tracker Jim Dean BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 5 August 31st, 2006 12:23 PM
Building my own ticket tracker cf2006 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 3 August 31st, 2006 11:04 AM
Chap 12 Project tracker - listboxes don't clear trancelife BOOK: Beginning Access 2003 VBA 1 February 14th, 2005 12:15 PM





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