Summary
How to connect to your Sage 50 Accounts data through Microsoft Excel via ODBC.
Description
From time to time, you may need to work or report on your data in a different way to how you do in Sage.
Connecting your Sage data to Microsoft Excel via the ODBC driver and a MS Query in Excel, gives you a powerful tool to investigation or summarise your data in a pivot table.
Use this guide to set up your first connection and refresh your connections, if required. Let's take a look at how to do this.
Resolution
Connect for the first time or after upgrading Sage
- In Sage 50 Accounts, click Help, then select About.
- In the Program Details section in the About screen, note the Data Directory path.
- In the System Details section of the About screen, click the Window System Directory path.
- Find the odbcad32.exe file, then right-click it and choose Run as Administrator.
NOTE: Enter your Admin logon details if prompted.
- In the ODBC Data source Administrator window, click the System DSN tab.
- Click Add.
- Scroll down to near the bottom of the list and double click on the latest version of Sage.
- In the Data Source Name field, enter a brief version of your company name and the version number of Sage you're using.
- In the Data Path field, enter the Data Directory path you noted in step 2.
TIP: If using V28.1 or above, add ACCDATA to the end of the data field for example C:\ProgramData\Sage\Accounts\2022\Company.000\ACCDATA
- Click OK.
- Repeat steps 1-9 for each company you want to set up.
You've linked your accounts data to your Excel spreadsheet.
Refresh existing connection when data directory has changed
- Click Help, then click About.
- In the Program Details section, note the Data Directory path.
- In the System Details section, click the Window System Directory path.
- Find the odbcad32.exe file, then right-click it and choose Run as Administrator.
NOTE: Enter your Admin logon details if prompted.
- In the ODBC Data source Administrator window, click the System DSN tab.
- Double click the connection / company name that needs updating.
- Delete the old information from the Data Path field.
- In the Data Path field, enter the Data directory you noted in step 2.
- Repeat steps 1-8 for each company you need to update.
You've now refreshed the link between your accounts data and your Excel spreadsheet.
Create a new link to Excel
- Open a new Microsoft Excel worksheet, or the worksheet that you want to connect to your Sage 50 Accounts data.
- From the menu bar, click Data.
- Click
Get Data.
- Click From Other Sources, then click From Microsoft Query.
- Double click the connection / company name you want to investigate.
- In the ODBC Connect window, enter your Sage 50 Accounts username and password into the User ID: and Password: fields respectively.
NOTE: You don’t need to log out of Sage.
- In the Query Wizard, select a data column you need in the Available tables and columns: section.
- Click the right arrow
to add it to the Columns in your query: section.
TIP: If you're not sure which columns you need to include, we've created this great interactive guide to help you.
- Once you've added all of the data columns you need, click Next., then click Next, then click Next, then click Finish, then click OK.
That's it, you've connected this Microsoft Excel worksheet to your Sage 50 Accounts data.
Refresh the connection in Excel
- Open your Microsoft Excel workbook.
- From the menu bar, click Data.
- Click
Refresh All.
NOTE: If any messages appear, action as appropriate.
- Click the machine Data source from the Select Data source window.
- Double-click the required connection / company name.
- Enter your Sage 50 Accounts username and password into the User ID: and Password: fields respectively, then click OK.
- If you have multiple connections, repeat steps 4-7.
You've now reconnected this Microsoft Excel worksheet to your Sage 50 Accounts data.