VBA - import/transfer Open Document Spreadsheet (ODS) to MS Access - vba

Is it possible to import/transfer .ods files to Microsoft Access?
Duo to the documentation the method
expression.TransferSpreadsheet (TransferType, SpreadsheetType, TableName, FileName, HasFieldNames, Range, UseOA)
has the parameter SpreadsheetType. There are only Excel Versions listed. Seems there is no support for .ods? Has someone knowledge about how to handle .ods to MS Access?

There's no support for .ods files in Microsoft Access.
Usually, you can import unsupported file types using an ODBC driver, but there doesn't seem to be an ODBC driver that supports .ods files either (in contrast to Excel files, text files, etc. which can be imported via ODBC).
You can, of course, use Excel via OLE automation to convert the file to an appropriate format before importing or after exporting.

Even there is no direct support, if you know .ods files are ZIP-compressed and XML-based you can unzip the file and import the XML-Data.

Related

How do I access (large) excel (xlsx) files using dbplyr?

The R library dbplyr allows access to large data files using excel.
I have excel files that are large enough to be problematic and I would like to selectively pull in contents using SQL using dbplyr.
How do I connect to, and access the Excel xlsx file using the dbplyr interface?

VBA or BATCH file to repair/compact Microsoft Access files in a folder

I have a folder, with several subfolders, and inside of each one, there are several ms access files.
Currently, I open and compact/repair each one.
Could someone share some simple code to accomplish this programmatically?
It can do VBA inside ms access, Excel file, or a simple batch file.
You can open each database file with a command line switch: /compact
It is documented here:
Command-line switches for Microsoft Office products (Access)

Excel: Read .dbf file from microsoft query (other sources)

Enviroment: Microsoft Office 2010, Windows 10
I can not obtain this external data from my .dbf file using Microsoft Query, maybe my data source is incorrectly configured but I tried all the drivers that could handle this format, for example "Driver do Microsoft dBASE (*.dbf)", "Visual Fox Pro tables", etc. and choosed all the existing versions (III, IV and 5.0), then I get the error "imposible the access to the table x", so I'm not sure what it's not working here.
Making the connection through this tool from Excel in order to read the file is required but also VBA code are well accepted too.
This is a link to the zonas.dbf file:
https://ufile.io/vuhfk

Saving an Access table as dBASE_IV file (.dbf) in VB.NET

I am making a small application that will read .csv files into a newly generated access table (generated with vb.net), I am filling this database with sql and now I would like to output that table as a .dbf file!
I can't find any info on this subject.
I know some of you will tell me to just make the script in vba in access, but there are some functions that require me to use vb.net and the client wants a single .exe file.
There is a forum post here that includes some VB.NET sample code to create a .dbf file and write some data into it. The code uses the Visual FoxPro OLEDB driver (VFPOLEDB) which is no longer distributed with Windows by default, but can be downloaded here.

Fox Pro 8 - Export to Spreadsheet

I don't have much programming knowledge, but I have a data set on a CD in the FoxPro format and I need to know if it can be exported to something like Google Docs in the form of a spreadsheet.
If you have any version of FoxPro or Visual FoxPro, you can use the COPY TO command or the Export Wizard to turn each table into an Excel spreadsheet (with some limitations). Excel can open some older format DBFs, so depending how old your data is, you may be able to just open it from Excel specifying "dBase files."
FoxPro tables can also be exported in CSV format, which a spreadsheet should be able to read. Again, you'd need FoxPro for that.
If you have the VFP ODBC driver, you can use to open the data and export it.