Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow Error Trapping.

Slides:



Advertisements
Similar presentations
Integrated Business Applications with Databases (D3) Jenny Pedler
Advertisements

Using VB with MS Applications R. Juhl, Delta College.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Microsoft VB 2005: Reloaded, Advanced Chapter 5 Input Validation, Error Handling, and Exception Handling.
Error Trapping Part II Runtime Errors Error Handling Conclusion Questions Syntax Errors Error Categories Logic Errors Debugging Tools The Err Object Error.
MotoHawk Training Model-Based Design of Embedded Systems.
Exploring Microsoft Access Chapter 8 Creating More Powerful Applications: Introduction to VBA By Robert T. Grauer Maryann Barber.
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Exploring Office Grauer and Barber 1 Creating More Powerful Applications: Introduction to VBA(Wk9)
Visual Basic for Applications Class III. User Forms  We place controls on User Forms to get input from the user.  Common controls include text boxes,
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
Microsoft © Access 2000 Types of Forms Forms & Real Estate Conclusion Questions Why use a Form What is a Form Data behind a Form Controls on a Form Code.
Adding Automated Functionality to Office Applications.
Exploring Microsoft Excel 2002 Chapter 8 Chapter 8 Automating Repetitive Tasks: Macros and Visual Basic for Applications By Robert T. Grauer Maryann Barber.
Computer Science & Engineering 2111 Data Validation and Macros 1 CSE 2111 Lecture-Data Validation and Macros.
MS Access Advanced Instructor: Vicki Weidler Assistant:
Not in Text CP212 Winter No VBA Required “Regular” Programming traditional programming is sequential in nature o one command executed after another.
Week 1.  Kate Watson  Checked at least every other day. Queries and general comments welcome.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
1 Chapter 9 Writing, Testing, and Debugging Access Applications.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
Tutorial 11 Using and Writing Visual Basic for Applications Code
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Using Visual Basic for Applications (VBA) – Project 8.
Copyright © 2001 by Wiley. All rights reserved. Chapter 4: The Selection Process in Visual Basic Selection Process Two Alternative Structure If..Then..ElseIf.
University of Sunderland COM 220 Lecture Six Slide 1 Building Interactive Forms Applications using Oracle.
ME 142 Engineering Computation I Debugging Techniques.
Visual Basic.NET BASICS Lesson 5 Exponentiation, Order of Operations, and Error Handling.
MS Visual Basic Applications Walter Milner. Event-driven programming Standard approach for GUIs Contrast with old character interfaces – program determines.
University of Sunderland CIF 102/FIF102 Fundamentals of DatabasesUnit 15 Programming in Microsoft Access using VBA Using VBA to add functionality.
Explore Patterns in Context-Aware Applications --Using Reactor Pattern to Develop In/Out Board Fall 2002 Yu Du.
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
Exploring Microsoft Access Chapter 8 Creating More Powerful Applications: Introduction to VBA.
Chapter 9 Macros And Visual Basic For Applications.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
VB for applications. Lesson Plan Fundamentals of VB VB for handling events in Access.
Chapter 11: Introduction to VBA Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Introduction to Excel VBA UNC Charlotte CPE/PDH Series December 17, 2009.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
SCRIPT PROGRAMMING WITH FLASH Introductory Level 1.
5.01 Understand Different Types of Programming Errors
Understanding Visual Basic Fundamentals CHAPTER 13 Understanding Visual Basic Fundamentals.
Chapter 1 Database Access from Client Applications.
Text TCS INTERNAL Oracle PL/SQL – Introduction. TCS INTERNAL PL SQL Introduction PLSQL means Procedural Language extension of SQL. PLSQL is a database.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
Lecture 3 Visual Basic for Applications in Access 1 Rapid Application Development.
Financial Information Management VB, VBA, VS, VSTO & VBE: Putting it all together Source: Excel VBA Programming by John Walkenbach.
Lecture 6 – Working with VBA Sub Procedures Dr Joanna Wyrobek 1.
Exceptional Control Flow
5.01 Understand Different Types of Programming Errors
VBA - Excel VBA is Visual Basic for Applications
DB Implementation: MS Access Macros
Chapter 9: The Client/Server Database Environment
CS533 Concepts of Operating Systems
Innovative Technology Solutions
The Client/Server Database Environment
Microsoft Access Illustrated
Excel VBA Day 3 of 3 Tom Vorves.
PL/SQL Scripting in Oracle:
5.01 Understand Different Types of Programming Errors
DB Implementation: MS Access Macros
Exploring Microsoft Excel
أ.إسراء الطريقي أ. هاله الشملان , 102 تقن , المعمل الخامس
Exploring the Power of EPDM Tasks - Working with and Developing Tasks in EPDM By: Marc Young XLM Solutions
Exploring the Power of EPDM Tasks Working with and Developing Tasks in SolidWorks Enterprise PDM (EPDM) By: Marc Young xLM Solutions
Chapter 15: GUI Applications & Event-Driven Programming
Finishing Up.
Presentation transcript:

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow Error Trapping Error Handling & other very practical uses for VBA in MS Access 2000 Part I

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow September 13, 2001Error Handling - Part I2 What is VBA Visual Basic for Applications Work with complex logic (Case, Loops…) Allows use of constants and variables Perform Transaction Processing Create and work with DB objects in code Create libraries of user-defined functions Call Windows API functions Perform automation commands Implement Error Handling and Error Trapping

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow September 13, 2001Error Handling - Part I3 What is an Error  Every form & report contains an Error event  Form engine and report engine differ  Triggered by interface or by the engine  Error numbers range from 5 to 32,767  Errors in VBA, Access, Jet, SQL, Windows  “Application-defined or object-defined error”  Some Jet errors use symbol | as placeholder

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow September 13, 2001Error Handling - Part I4 Error Messaging Message displayed when Error Occurs Debug causes the VBE to appear

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow September 13, 2001Error Handling - Part I5 Types of Errors Synchronous Errors –Errors while code is running –Predictable –Most errors occur this way Asynchronous Errors –Errors while code is NOT running –Unpredictable –i.e. Out of memory, network, bad data

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow September 13, 2001Error Handling - Part I6 Error Commands On Error –On Error Goto Error_Handler –On Error Resume Next Exit –Exit Sub –Exit Function Resume –Resume Next

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow September 13, 2001Error Handling - Part I7 Error Flow

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow September 13, 2001Error Handling - Part I8 Error Handling Allow error to occur, then resume Substitute error with code Trap error and handle it Bring up Message Box Bring up Input Box Bring up another form Trap Error and Log to Errors Table

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow September 13, 2001Error Handling - Part I9 Conclusion Errors Happen ! Can not trap errors with macros – use VBA  Errors in VBA, Access, Jet, SQL, Windows Handle all predictable errors Handle many unpredictable errors Handle all errors “elegantly” Explore Nesting Error Handlers Explore User-Defined Errors

Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow September 13, 2001Error Handling - Part I10 Questions Ofer Shimrat Soundoff Computing (858) Thank You