Click the Data tab.
Click the From Other Source button, and then click From Microsoft Query.
![Click the Data tab. Click the From Other Source button, and then click From Microsoft Query.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Define_New_Data_Source___Click_Data_Tab_Click_From_Other_Sou.PNG)
Click the Databases tab.
Click New Data Source. Click OK.
![Click the Databases tab. Click New Data Source. Click OK.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Define_New_Data_Source___Click_Databases_Tab_Click_new_Data_.PNG)
Type the name of the source.
Select a driver for the type of database, such as Driver do Microsoft Access Driver (*.mdb).
Click Connect.
![Click Connect.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Define_New_Data_Source___Click_Connect.PNG)
Click Select.
![Click Select.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Define_New_Data_Source___Click_Select.PNG)
Navigate to the folder with the database you want to use, and then click OK.
![Navigate to the folder with the database you want to use, and then click OK.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Define_New_Data_Source___Navigate_To_Folder_With_Database_Yo.PNG)
Click OK again.
![Click OK again.](http://www.java2s.com/Tutorial/Microsoft-Office-Excel-2007Images/Define_New_Data_Source___Click_Ok_Again.PNG)