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
Desktop
button 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
Start
menu and search forAccess
- Click on the
Access
app 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 Data
in the top menu - Click on
More
and thenODBC Database
- Follow the on-screen instructions to export the database to your SQL Server, but select
Machine Data Source
instead ofFile Data Source
- Select
New
and thenUser Data Source
- Select
SQL Server
and clickNext
- For the
Server
field, you must use theDefault Gateway
IP address the UTM machine is using. You can find this by runningipconfig
in 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 Connection
to 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 Sharing
and click on thei
icon next to it - Click the
+
button on the Shared Folders section and select the folder you want to share. We recommend just using theDownloads
folder for simplicity - Click the folder in the list and ensure your account has
Read & Write
permissions, and Everyone hasNo Access
- Click the
Options...
button and ensureShare files and folders using SMB
is 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
ipconfig
to find theDefault Gateway
IP address. Save this for later - Open
File Explorer
and right-click onThis PC
and selectMap network drive
- Enter the following in the
Folder
field:
\\<Default Gateway IP Address>\Downloads
(or the folder you shared)
- Ensure
Reconnect at sign-in
is checked and clickFinish
- Click
Finish
and 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 credentials
at theEnter network credentials
prompt - You should now see the shared folder as a network drive in Windows