How to query the dbf file in my local drive via power query in excel? Anyone can help me?
How to query the dbf file in my local drive via power query in excel? Anyone can help me?
you need to install dbf database drive first. if your dbf file is for VFP, you should install the VFP OLEDB
Row row row your boat
Gently down the stream
Can you elaborate in more details? Where to install dbf database drive?
You may download the VFP dbf driver at
https://www.microsoft.com/en-us/down....aspx?id=32602
and here is an example for connecting VFP formatted dbf datafile:
![]()
Please Login or Register to view this content.
MyPath is a Power Query parameter, which is the directory of your dbf data files located at.
sorry can I know where this code that I need put? VBA? This is my first time experience for this thing, so a lot of thing I didn’t familiar about
it is power query. not VBA.
If it is a normal formatted dbf (non VFP dbf file), you may also link data through MS Access Engine provider. In that case, there is no need to install the VFP OLEDB
for example:
![]()
Please Login or Register to view this content.
*Note: please check the version of the Microsoft.ACE.OLEDB provider available in your computer, and change the setting respectively (above code in bold font).
Last edited by Metoo7; 09-10-2021 at 07:34 AM.
You should learn some basic knowledge about Power Query, otherwise you won’t be able to understand what I’m talking about.
Below is my setup as you suggested, i am not sure whether is correct or not, And Window open Winzip after I click the VFP installer
Capture.pngCapture1.PNG
I have created and attached an example file for you. Please go to [Data > Queries & Connections] to view the Power query scripts and settings.
If the data source provider was installed in your computer appropriately, you should be able to synchronize the dbf data to your Excel worksheet..
Please click the Refresh All button to load and update data.
In the above example file, I have provided 4 possible settings. If none of them work for you, it most probably due to the dbf file you provided is in VFP format. In that case, you may have to install the Visual FoxPro OLE DB Provider (VfpOleDB) to make it work.
Thank you Metoo7, Query 2 is works for me. Appreciate for your works.
You are welcome.
Hi Metoo7, can i know why i cant find the dbf data when i click Manage in Power Pivot section? i want create the relationship between each database.
i already find the solution.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks