Summary
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 via the ODBC driver gives you a powerful tool to investigate or summarise your data in Excel.
Use this guide to set up your first connection and refresh your connections.
Resolution
NOTE: If you want to set up a Management or Turnover report, you can refer to our Reports available from the Excel Report Design Service article.
Connect for the first time or after upgrading
- Click Help, then click About.
- In the Program Details section, note the Data Directory path.
- In the System Details section, click the Window Directory link, then open the System32 folder.
- 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 then add ACCDATA to the end of the data field for example C:\ProgramData\Sage\Accounts\2022\Company.000 will become C:\ProgramData\Sage\Accounts\2022\Company.000\ACCDATA. - Leave the checkbox blank, then click OK.
- Repeat steps 1-9 for each company you want to set up.
That's it, you've linked your accounts data to your Excel spreadsheet.
Refresh the existing connection when the 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.
- Move up one folder to the Windows folder and open the System32 folder.
- 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 to update.
- 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 interactive guide to help you. - Once you've added all 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.
Upgrading your licence
Need a little more room? To add extra companies, users, employees or more to your software licence, leave your details and we'll be in touch.