Microsoft Access
This section provides an overview of using Microsoft Access.
For some of the labs and assignments, you may need to use Microsoft Access. This page will guide you through the process of installing and using Microsoft Access.
Pre-requisites
- UTM
- Windows 11 ARM Installed
Installation
- Inside the UTM machine, open the browser
- Go to Liberty's MS-365 Center
- Click on the
Desktopbutton under Download Microsoft 365 - Now in the portal, click on
Install Office - Install the Office suite by following the on-screen instructions
Usage
- Open the
Startmenu and search forAccess - Click on the
Accessapp to open it - You can now create a new database or open an existing one
Exporting via CSV Hint
You can also export via CSV, and we have a small hint to help with that. The formula below will help you export a table to a CSV file. You can then import the CSV file into your SQL Server.
="INSERT INTO Regions VALUES("&A2&",'"&B2&"')"
Take this as you will...
Exporting via ODBC
You will need to export the databases created in Microsoft Access to your SQL Server.
First, ensure in the UTM machine settings under Network that the Network Mode is set to Shared Network.
- Open MS Access and open the database you want to export
- Click on
External Datain the top menu - Click on
Moreand thenODBC Database - Follow the on-screen instructions to export the database to your SQL Server, but select
Machine Data Sourceinstead ofFile Data Source - Select
Newand thenUser Data Source - Select
SQL Serverand clickNext - For the
Serverfield, you must use theDefault GatewayIP address the UTM machine is using. You can find this by runningipconfigin the command prompt in the UTM machine - Enter your SQL Server credentials and click
Next. This should be the same credentials you use to login to the SQL Server - Continue through the steps, and click
Test Connectionto ensure the connection is working
Sharing the Database files with MacOS
Using UTM, you can set a shared folder between Windows and MacOS. This will allow you to easily transfer files between the two operating systems.
- Open UTM, select the Windows 11 virtual machine and click the disk icon in the top right
- Select
Install Windows Guest Tools - Follow the on-screen instructions to install the tools
Now, the process gets to be a bit tricky. You will need to share a folder between Windows and MacOS. This will allow you to easily transfer files between the two operating systems. However, we are going to map it as a network drive in Windows.
- Open your MacOS settings and go to
Sharing - Turn on
File Sharingand click on theiicon next to it - Click the
+button on the Shared Folders section and select the folder you want to share. We recommend just using theDownloadsfolder for simplicity - Click the folder in the list and ensure your account has
Read & Writepermissions, and Everyone hasNo Access - Click the
Options...button and ensureShare files and folders using SMBis checked
Now, you will need to map the shared folder as a network drive in Windows. Open up the Windows UTM machine and follow these steps:
- Open the command prompt and run
ipconfigto find theDefault GatewayIP address. Save this for later - Open
File Explorerand right-click onThis PCand selectMap network drive - Enter the following in the
Folderfield:
\\<Default Gateway IP Address>\Downloads
(or the folder you shared)
- Ensure
Reconnect at sign-inis checked and clickFinish - Click
Finishand enter your MacOS credentials when prompted. This is the same credentials you use to login to MacOS, so it should be your MacOS username and password - Ensure you select
Remember my credentialsat theEnter network credentialsprompt - You should now see the shared folder as a network drive in Windows