need to convert CSV file to DBF file from MS-Access 2007 through Macro - ms-access-2007

I need to convert CSV file to DBF file from MS-Access 2007 through Macro
Please Help me!
I am stuck with it.
I want to automate it,as its a daily need in my firm
I need a button that whenever i click on it,it picks up the CSV file and convert it into DBF file
I Have the idea,what all i can do but i dont know how to do it.

You can't. Access 2007 knows nothing about DBF files.
One option is to get hold of an Access 2000 copy. Then export your data to an Access 2000 format mdb file, and open this in Access 2000 and export as DBF.
Edit:
This answer claims to work with Access 2007:
Export MS Access tables as dBase 5 through VBA
Also, I tested that with Access 2000. It doesn't know dBase 5, but dBase IV works for me:
DoCmd.TransferDatabase acExport, "dBase IV", "c:\test", acTable, "TestTable", "DBTable4", False, False
Note that the file name is limited to eight characters.

Related

SQL Server unable to upload excel file

I try to create a new table by uploading an Excel file, but it is stuck on the last step of SQL Server Import and Export Wizard; the openrowset function works
While importing excel file in sql server you would have got excel, Select microsoft Excel 97-2003 format if you are using latest verion of excel Or else it's better you export it to access database and upload it.

How can I impoprt data from SAP system to excel using VBA

Can anyone help me out regarding A standard code for importing data from SAP SYSTEM TO EXCEL using VBA. I use SE16 transaction and a table named .I need to import data from TFACS table to excel using vba.
If you have access to SE16n you can export directly from there to csv or text file. You can also get with IT to create a nightly spool that will dump a text file into a folder and then link directly to that file with excel.

Convert MS Access memo to a link field to an exported txt file

Is there a way to convert MS Access column with memos into a column with links to external files with exported content of a memo?
I have asked Google and did not find any hints. I do not shy from using VBA in Excel but I have no idea where to start with Access. I guess a code converting the table would have to go record by record, exporting each memo to a txt file, naming this file and creating a link in a new "links" field.
Can you help me find a solution? Thanks in advance for help.

Importing 2007 files in SQL SERVER 2008 R2

Good Day,
Today i am facing this error upon importing an excel file to a databe in sql server 2008
i do not know what causes this error, i do not know if it is because the excel file is 48MB in size, or because there is a sheet where in there are 113956 rows? if so can you help me find a work around to this? i really need to import the data inside my excel file to the database. i tried selecting the 2007 version of my excel file in the dropdown box like below but it still outputs the same problem. so any help?
Thank You.
There are a couple of things you can try:
Resave the Excel file as a delimited text file - that way you can get around the MS Office driver.
Try cutting the Excel file in half by saving it in two different files.
Out of curiosity, how many columns does this Excel file have? I believe there is a 255 column limit.
I tried Re saving the file but not in a CSV format, i have found out that the excel file is read only although its properties are not set to read-only, upon resaving the excel file to another file the import now works for me.

How can import xlsx file to Sql server 2000

Recently i moved to office 2007. im trying to import excel file to sql server 2000 using import and export data tool ,the tool gave data source as excel 97 - 2000 but while importing xlsx file ,im getting error "Error source Microsoft Jet databse Engine", external table is not in the expected format. Can you tell me how can i import office excel file xlsx to sql server 2000 using import and export data tool.
Appreciate your prompt comments
You could use an OLEDB connection, assuming DTS supports it. It's been a while since I've used it, so I can't remember. Connection looks something like this: Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myExcel2007file.xlsx;Extended Properties="Excel 12.0 Xml;HDR=YES";
If your DTS server doesn't have Office installed you'll need to install the drivers:
http://www.microsoft.com/downloads/details.aspx?familyid=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en
The simple way is use Access 2007 to create a Access Project to connect to SQL 2000, and then import Excel 2007 data by Access 2007 Project.
Saving the document into 97-2003 format is fine when you have a spreadsheet that is smaller than 65536 rows, if it's not then using GordonB's link works
I agree with "schooner", the easiest way to import Excel 2007 into SQL 2K is to save the excel document into a 97-2003 format.
You could always just save it to a 97-2000 format XLS file