Course Content
Advanced Spreadsheets
This topic covers the ICDL Advanced Spreadsheet module: conditional formatting, advanced functions, charts and tables, data analysis and what-if scenarios, data validation and auditing, macros and templates, and collaboration features.
0/9
Advanced Presentation
This topic covers the ICDL Advanced Presentation module: planning professional presentations, using slide masters and templates, working with graphical objects, charts and diagrams, integrating multimedia and animation, embedding and linking data from other sources, and managing presentations for different audiences.
0/9
Advanced Databases
This topic covers the ICDL Advanced Database module: designing and planning relational databases, creating tables and relationships, developing advanced queries, building forms and subforms, generating complex reports, using macros and SQL for automation, and implementing database security and linking data from external sources.
0/9
Test
Protected: Icdl advanced

Advanced Module – Databases (Access)

Lesson 8 – External Data, Macros and Final Database Tools

This final lesson covers importing and exporting data, linking to external sources, using simple macros for automation, and maintaining a database through compacting, splitting and backup. These skills are essential when preparing an Access database for real-world use.

1. Importing data

You can import data from Excel, text files, CSV, XML, other Access databases and more. Importing creates a local copy of the data inside your database.

How to import from Excel

  1. Go to External Data > New Data Source > From File > Excel.
  2. Browse to locate the workbook and click Open.
  3. Choose to Import the data into a new table or append to an existing table.
  4. Follow the wizard to confirm field names, data types and primary key options.
  5. Finish and review the imported table.

2. Linking to external data

Linking does not copy data into Access. Instead, Access reads the data directly from the source file.

  • Ideal for shared Excel workbooks or external databases.
  • Changes in the source file automatically appear in Access.

How to link to an Excel file

  1. Go to External Data > New Data Source > From File > Excel.
  2. Select Link to the data source by creating a linked table.
  3. Complete the wizard and finish.

3. Exporting data

You can export tables, queries, reports and forms to Excel, text, PDF or XPS for sharing and analysis.

A labeled diagram showing export options in Microsoft Access or PowerPoint. Include buttons or menu items labeled 'Excel', 'Text File', and 'PDF/XPS'. Use a clean instructional layout with icons for each format and labels pointing to each option. Corporate style with blue and grey tones.

  1. Select the object in the Navigation Pane.
  2. Go to External Data and choose the export format (Excel, Text, PDF/XPS).
  3. Follow the wizard to save the file.

4. Introduction to macros (UI macros and data macros)

Macros automate tasks without needing VBA coding.

  • UI macros – linked to forms, reports or controls (e.g. buttons).
  • Data macros – linked to table events (e.g. Before Change, After Insert).

A labeled diagram of the Macro Designer window in Microsoft Access. Show a clean interface with macro actions listed in rows, each with columns for Action, Arguments, and Comments. Include a toolbar at the top with buttons like Save, Run, and Close. Use a clean instructional layout with blue and grey tones and clear labels for each section.

Example UI macro: Button to open a form

  1. Open a form in Design View.
  2. Add a Button control.
  3. Use the wizard: Form Operations > Open Form.
  4. Choose a form, confirm details and finish.
  5. Access automatically writes the UI macro behind the button.

Insert Image Placeholder: Command Button Wizard (Open Form)

5. Macro safety

  • Only enable macros from trusted locations.
  • Use macros to automate routine tasks—not to bypass security settings.
  • Be cautious with data macros, as they can change data automatically.

6. Compacting and repairing the database

The Compact and Repair tool reduces file size, removes temporary data and can fix minor corruption.

Insert Image Placeholder: Compact & Repair Database screen

  1. Close all open objects.
  2. Go to File > Info.
  3. Click Compact & Repair Database.

7. Splitting the database (overview)

Splitting separates the database into two parts:

  • Back-end – tables and data (shared file on a server).
  • Front-end – queries, forms, reports and macros (on each user’s computer).

A labeled diagram of the Database Splitter Wizard in Microsoft Access. Show a clean interface with options to split the database into front-end and back-end files. Include labeled buttons like 'Split Database', 'Cancel', and fields showing file paths for front-end and back-end. Use a clean instructional layout with blue and grey tones and clear labels for each section.

How to start the Database Splitter (where available)

  1. Go to Database Tools.
  2. Select Access Database or Split Database.
  3. Follow the wizard to create the back-end file and generate linked tables.

8. Backup and security basics

  • Create regular backups of your database (and the back-end if split).
  • Store backups in a secure location such as a network drive or cloud service.
  • Use Windows folder permissions to restrict access to sensitive data.
  • Consider password protection or IT-managed access controls.

A labeled diagram of the Backup Database dialog in Microsoft Access. Show a clean interface with fields for selecting the backup location and filename. Include buttons like 'Save', 'Cancel', and 'Browse'. Use a clean instructional layout with blue and grey tones and clear labels for each section.

9. Final checks before deployment

  • Test all forms, queries, reports and macros thoroughly.
  • Confirm that relationships and referential integrity are correctly enforced.
  • Remove temporary or test data.
  • Run Compact & Repair before distribution.
  • Provide a navigation form or switchboard for end users.

A Microsoft Access-style navigation form example. Show a top tab navigation bar with three labeled tabs: 'Customers', 'Orders', and 'Reports'. Below the tabs, include a blank content area to represent where forms or reports would appear. Use a clean instructional layout with blue and grey tones and clear labels for each section.

10. Practical Activity

  • Import data from an Excel file into a new table.
  • Link to a second Excel workbook as a linked table.
  • Export a query to Excel.
  • Add a button to open a report using a UI macro.
  • Run Compact & Repair on your database.
  • Make a backup copy of your database and save it in a separate folder.