Introduction
This guide provides a step-by-step walkthrough to connect MS Access to OneDrive using the ZappySys ODBC API Driver for efficient data integration. This connection simplifies managing and analyzing OneDrive data across various applications.
Prerequisites
- ODBC PowerPack: Download and install the ZappySys ODBC PowerPack from the Customer Download Area or try the trial version.
- Microsoft Account
Steps
Create an Application on the OneDrive Side
- Go to the Azure Portal and log in.
- Navigate to Azure Active Directory.
- Under App registrations, select New registration.
- Enter an application name, choose Accounts in this organizational directory only for the account type, and select Web for Redirect URI.
- Enter a valid redirect URL, such as
https://login.microsoftonline.com/common/oauth2/nativeclient
orhttps://zappysys.com/oauth
. - Save your Application (client) ID, Tenant ID, and Secret ID.
Create a New ODBC Driver
-
Open ODBC Data Source by searching for “ODBC” on your system.
-
For SQL Server Integration, go to User DSN or System DSN and click Add. Select ZappySys API Driver, choose OneDrive as the connector, and click Continue.
OneDrive Connector Configuration
-
Fill in the Client ID and Client Secret and specify the required scopes. Use the following URLs for authorization and token generation:
* https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/authorize * https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token
-
Generate the token and test the connection.
-
In the Preview Tab, select a table and view the results.
Import Data in Microsoft Access
-
Open MS Access and create a new database.
-
Navigate to External Data > New Data Source > Other Sources > ODBC Database.
-
Choose Import the source data into a new table.
-
Under Machine Data Source, select your previously created data source and click OK.
-
Select tables and views to import, then load the data.
Using Linked Tables for Real-Time Data (Optional)
Linked tables allow live access to data, supporting real-time data management and simplifying maintenance tasks.
-
In MS Access, create or open the database where you want to create the linked table. Go to External Data > New Data Source > ODBC Database and select Link to Data Source by creating a linked table.
-
Select your Machine Data Source from earlier and confirm the selection.
-
Choose the tables and views to link. When prompted, skip the Unique Key selection and proceed.
-
Double-click the linked table to load data.
Considerations
You can save your credentials for easy access in future sessions.
Video Tutorial
Conclusion
Using the ZappySys ODBC API Driver, you can easily connect MS Access to OneDrive, enabling streamlined data integration and analysis. Our support team is available on the ZappySys website for further assistance.