With your host: Daniel McAllister MICROSOFT ACCESS 2013 With your host: Daniel McAllister Use Google Chrome to surf to www.learnit.com/evaluation
Module 7: Automating Access Databases Create Macros There’s no Macro Recorder, as in Word or Excel Instead, you build a “Script” from available Actions Actions often have “Action Arguments” that further refine the Action We’ll see several different ways to trigger our macros By running it from the Editor window By double-clicking the macro’s name in the (left side) Navigation Pane By clicking a Command-Button By opening or closing a form By typing some magic words into a field By opening this database-file (this macro must be named “AutoExec”)
Module 8: DB Maintenance and Deployment Startup Options Introduction to VBA concepts and terminology Compact and repair databases Using hyperlinks in an Access database Record locking Create switchboard-forms (2 ways) By Command-buttons By the “Switchboard Manager”
Macro Actions we are using Result MessageBox Displays information to our user and waits for them to click an [OK]-button OpenForm You can control what the user can do with the records in this form MaximizeWindow Maximizes all windows except MsgBoxes RestoreWindow Un-maximizes all windows Close Closes the current object, but you could use it to close other open objects as well MoveSizeWindow Controls placement of the upper-left corner of a window as well as the height and width of the window SetValue Enter pre-defined data in a pre-defined spot
Practice frmCustomerData is made from tblCustomer tblCustomer has a foreign key named strSalesperson tblPersonal is a list of our employees It has a primary key named EmployeeID frmCustomerData and frmPersonal are made from those 2 tables Create a button on frmCustomerData that opens frmPersonal, connected by strSalesperson <-> strEmployeeID
Visual Basic Programming You usually declare “variables” as memory-locations where you store information Variables that store text are called “String”-variables Search the web for “visual basic variable types” Your program usually has “branches” controlled by “if-then-else” or “Select Case” logical structures
Dan’s Parking Lot