Open an mdb file goto a module (create one if none) and search for Access automation. Look for OpenCurrentDatabase method, in order to use DoCmd.TransferDatabase Method.
what i do is i get data from our sql server and put it in the table of access database. then from that specific table of access database, i want to export or convert or save it to dbf(Foxpro) file.
Ok. You can either do what Jerry says to do or do what Joe says to do. Jerry's solution requires an Access license somewhere to work, whereas Joe's does not. Basically, Jerry is saying to use VB's Access Automation to automatically open up Access and use it to export the data into Foxpro, while Joe is saying to use VB and ADO to open up the Access table and the Foxpro table and use VB and ADO to transfer the data directly.
But, I really don't understand why you're doing that! If you get data from an SQL Server database to begin with, you can just pull the Foxpro table directly from there, using the same technique that Joe describes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.