MICROSOFT ACCESS 2010 With your host: Daniel McAllister.
-
Upload
merryl-cunningham -
Category
Documents
-
view
212 -
download
0
Transcript of MICROSOFT ACCESS 2010 With your host: Daniel McAllister.
![Page 1: MICROSOFT ACCESS 2010 With your host: Daniel McAllister.](https://reader036.fdocuments.us/reader036/viewer/2022072006/56649f455503460f94c66741/html5/thumbnails/1.jpg)
MICROSOFT ACCESS 2010With your host: Daniel McAllister
![Page 2: MICROSOFT ACCESS 2010 With your host: Daniel McAllister.](https://reader036.fdocuments.us/reader036/viewer/2022072006/56649f455503460f94c66741/html5/thumbnails/2.jpg)
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”)
![Page 3: MICROSOFT ACCESS 2010 With your host: Daniel McAllister.](https://reader036.fdocuments.us/reader036/viewer/2022072006/56649f455503460f94c66741/html5/thumbnails/3.jpg)
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”
![Page 4: MICROSOFT ACCESS 2010 With your host: Daniel McAllister.](https://reader036.fdocuments.us/reader036/viewer/2022072006/56649f455503460f94c66741/html5/thumbnails/4.jpg)
Macro Actions we are usingAction 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
Maximize Maximizes all windows except MsgBoxes
Restore 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
![Page 5: MICROSOFT ACCESS 2010 With your host: Daniel McAllister.](https://reader036.fdocuments.us/reader036/viewer/2022072006/56649f455503460f94c66741/html5/thumbnails/5.jpg)
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