Summary
How to connect to your 32-bit Sage 50 Accounts data through Microsoft Excel via ODBC.
Description
You can 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.
The steps below help you set up your first connection and refresh your connections, if required.
Follow our alternative article if you're using Sage 50 Accounts 64-bit.
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.
- 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.
- 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.
- 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 to connect to your Sage 50 Accounts data.
- From the menu bar, select Data then select Get Data.
- Select Legacy Wizards then From Microsoft Query (Legacy).
- Select the Data Source to connect to and press OK.
- In the ODBC Connect window, enter your Sage 50 Accounts username and password into the User ID: and Password: fields respectively.
- In the Query Wizard, select the table in the Add tables window and press Add.
- Once you select the tables required, press Close.
- Form the table in the top left, select the variables to add to the Excel Workbook.
- Double-click the variables to add the column to the query.
- After adding the data columns required, go to File then select Return Data to Microsoft Excel.
This opens the Import Data window.
- Select how to view and where to locate this data in your workbook and press OK.
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.
- 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.