MS Access – Part 1 (One Day Workshop)

1,957 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,957
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
71
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • Fixed Income Markets - Workshop Copyright@2007 Orbitra LLC www.orbitra.com
  • MS Access – Part 1 (One Day Workshop)

    1. 1. MS Access – Part 1 ( One Day Workshop) Khader Shaik
    2. 2. MS Access - Contents <ul><li>Overview of MS Access </li></ul><ul><li>Basics of Access </li></ul><ul><li>Working with Wizards </li></ul>
    3. 3. What is MS Access <ul><li>Database Management & Application development System </li></ul><ul><li>Small Scale DBMS System </li></ul><ul><li>Works great for small-scale single user applications (gets complex for multi-user) </li></ul><ul><li>Easy to build applications </li></ul><ul><li>Provides various Wizards and built-in commands for quick application development </li></ul><ul><li>Uses VBA for application development </li></ul><ul><li>Access Database can be accessed from any other application using Access DB drivers </li></ul>
    4. 4. Other MS DBMS <ul><li>MSDE – MS SQL Server Desktop Engine </li></ul><ul><li>SQL Server – enterprise RDBMS </li></ul>
    5. 5. Access Objects <ul><li>Tables </li></ul><ul><ul><li>Data Containers </li></ul></ul><ul><li>Queries </li></ul><ul><ul><li>Window to view, change and analyze data </li></ul></ul><ul><li>Forms </li></ul><ul><ul><li>User interface windows that can data display, data input etc </li></ul></ul><ul><li>Reports </li></ul><ul><ul><li>Data Reports for Print etc </li></ul></ul><ul><li>Macros </li></ul><ul><ul><li>Set of one more actions </li></ul></ul><ul><li>Pages </li></ul><ul><ul><li>Webpage published from access </li></ul></ul><ul><li>Modules </li></ul><ul><ul><li>VBA code collected under a module; declarations, statements and procedures </li></ul></ul>
    6. 6. Queries <ul><li>Allow to View, change and analyze data </li></ul><ul><li>Types of Queries </li></ul><ul><ul><li>Select Queries </li></ul></ul><ul><ul><ul><li>Retrieves data from one or more tables </li></ul></ul></ul><ul><ul><li>Parameter queries </li></ul></ul><ul><ul><ul><li>Query with parameters that prompts at run time </li></ul></ul></ul><ul><ul><li>Crosstab queries </li></ul></ul><ul><ul><ul><li>Used for calculations and restructuring for easy analysis (sum, avg etc) </li></ul></ul></ul><ul><ul><li>Action queries </li></ul></ul><ul><ul><ul><li>Used to perform database operations on bulk data (delete, update, make-table, append) </li></ul></ul></ul><ul><ul><li>Sql queries </li></ul></ul><ul><ul><ul><li>Developed using SQL statement </li></ul></ul></ul>
    7. 7. New Access DB <ul><li>Access provides Template to create new database </li></ul><ul><li>Wizards allows customization </li></ul><ul><li>Saves lot of time if your application has any similarities any template </li></ul><ul><li>Available templates </li></ul><ul><ul><li>Event management </li></ul></ul><ul><ul><li>Inventory Management </li></ul></ul><ul><ul><li>Order Management </li></ul></ul><ul><ul><li>Time and Billing </li></ul></ul><ul><ul><li>Asset Tracking </li></ul></ul><ul><ul><li>Contact Management </li></ul></ul>
    8. 8. Wizards <ul><li>Database Design (from template) </li></ul><ul><li>Table Design </li></ul><ul><li>Query Design </li></ul><ul><li>Report Design </li></ul><ul><li>Form Design </li></ul><ul><li>Page Design etc </li></ul>
    9. 9. Study of Northwind - Sample Database <ul><li>-- </li></ul>
    10. 10. Creating a Switchboard <ul><li>Switchboard / startup window </li></ul><ul><li>Provides the access to all application functions or any set of objects </li></ul><ul><li>For eg: Contact Management Application </li></ul><ul><ul><li>Add Contact </li></ul></ul><ul><ul><li>Delete Contact </li></ul></ul><ul><ul><li>Update Contact </li></ul></ul><ul><ul><li>Search Contact </li></ul></ul><ul><ul><li>Reports </li></ul></ul><ul><ul><li>Exit Application etc </li></ul></ul>
    11. 11. Application Object <ul><li>High level object that hold all other objects and starts the application </li></ul><ul><li>Access from Tools->Startup </li></ul>
    12. 12. Forms <ul><li>Forms can be used to view data, capture data or any thing else </li></ul><ul><li>Forms are built using GUI controls like Command button, labels, pictures, data tables etc </li></ul><ul><li>Each control responds to events </li></ul><ul><li>Events can be attached with </li></ul><ul><ul><li>Expression, Macro or Script </li></ul></ul><ul><li>Custom script or the built-in function can be attached to event </li></ul>
    13. 13. Expressions & Macros <ul><li>Expression are built using Expression Builder </li></ul><ul><li>Single line expression and Return some value </li></ul><ul><li>Macro is set of one more built-in actions with name </li></ul><ul><li>Repeating actions can be collected into Macros and reused </li></ul>
    14. 14. Macro Vs VBA Script <ul><li>Macros are simpler with limited programming support; VBA Script is complete programming language with error handling all other constructs </li></ul><ul><li>VBA Code is faster than Macro with large number of actions </li></ul><ul><li>Limited actions are available to build Macros where VBA Script can be developed to virtually anything </li></ul><ul><li>VBA Script provides ability to communicate with external applications; There are no actions for Macros </li></ul><ul><li>VBA supports XML </li></ul><ul><li>VBA can access any external Components </li></ul>
    15. 15. Common controls & Common Events <ul><li>Image </li></ul>
    16. 16. VBA Script <ul><li>Me </li></ul><ul><ul><li>Reserved word that refers to the parent object that the script is in </li></ul></ul><ul><ul><li>Very useful </li></ul></ul><ul><ul><li>Eg: </li></ul></ul><ul><ul><li>Me.Visible = False </li></ul></ul><ul><ul><li>// better code that using the object name </li></ul></ul><ul><li>Refering to the control </li></ul><ul><ul><li>Eg: Me!Name = “Joe” </li></ul></ul>
    17. 17. VBA Script …cont <ul><li>Refering to subform or reports </li></ul><ul><ul><li>Eg: Me!subform.Form!controlName </li></ul></ul><ul><ul><li>Me – parent object </li></ul></ul><ul><ul><li>Subform – subform name </li></ul></ul><ul><ul><li>Form – is keword and must since its FORM within Form </li></ul></ul><ul><li>Refering to the parent object </li></ul><ul><ul><li>Me.Parent.ddd </li></ul></ul><ul><li>DoCmd </li></ul><ul><ul><li>Execute specific action </li></ul></ul><ul><ul><li>Eg: DoCmd.Close (closed the form where is coded) </li></ul></ul>

    ×