MICROSOFT ACCESS 2010 With your host: Daniel McAllister
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 ActionResult MessageBoxDisplays information to our user and waits for them to click an [OK]-button OpenFormYou can control what the user can do with the records in this form MaximizeMaximizes all windows except MsgBoxes RestoreUn-maximizes all windows CloseCloses the current object, but you could use it to close other open objects as well MoveSizeWindowControls placement of the upper-left corner of a window as well as the height and width of the window SetValueEnter pre-defined data in a pre-defined spot
The SQL Where-clause On the left side of the equals-sign we put the name of the shared field in the form that’s being opened (called) by the button – The field name will have square brackets around On the right side we need the “fully qualified path” to the shared field in the form that has the button that we are clicking