473,698 Members | 2,508 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

automating the import of a xls file

I collect information from people via an xls file...columns are fixed
(name and number), rows are variable. It has validation rules for
data entry in some fields.
Currenty I just import the xls into access, and then append the
records from the imported table into the main table.
I'd like to "automate" this process..I'd appeciate your brainstorming
sugestions.
One route I was just thinking of this AM is to have the data entry
directly into ACCESS. But then I'd have to build a data entry process
with signmificant error checking and I would not have the control over
what gets placed into the main table (since i am the gatekeeper).

Not many records get added..maybe 30 monthly.

Jerry
Jan 13 '06 #1
3 1636
The syntax is:

DoCmd.TransferS preadsheet acImport, acExcelVersion, "tableName" ,
"FileName", HasFieldNames

So to import a spreadsheet with fieldnames from Excel XP, your
statement would look like:

DoCmd.TransferS preadsheet, acImport, acSpreadsheetTy peExcel9,
"tblName", "fileName", True

There's more information in Access help on the
DoCmd.TransferS preadsheet method.

Jan 13 '06 #2
Thanks for the info and lead Steve
I will see how this goes for me
Jerry
On 13 Jan 2006 06:08:13 -0800, "Steve" <th*********@gm ail.com> wrote:
The syntax is:

DoCmd.Transfer Spreadsheet acImport, acExcelVersion, "tableName" ,
"FileName", HasFieldNames

So to import a spreadsheet with fieldnames from Excel XP, your
statement would look like:

DoCmd.Transfer Spreadsheet, acImport, acSpreadsheetTy peExcel9,
"tblName", "fileName", True

There's more information in Access help on the
DoCmd.Transfer Spreadsheet method.


Jan 13 '06 #3
Red
If it doesn't work well for you, email me, and I will explain a
different way to do it.

`Red

Jan 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5628
by: EricP | last post by:
I'm trying to figure out how to print from IE 6.0 using Python's Win32all com library. When I do from win32com.client import Dispatch from time import sleep ie = Dispatch("InternetExplorer.Application") ie.Visible = 1 ie.Navigate("http://www.cnn.com") if ie.Busy:
7
12852
by: Limey Drink | last post by:
Hi all, Firstly :-) , is there any where I can search through archived newsgroup posts so I am not cluttering up the newsgroup with repeated queries ? And secondly :-), I know this has probably been discussed before but. I am wanting to do some scripting to automate a few administration tasks, one of the first tasks is automating FTP file transfers.
0
1277
by: Chanus | last post by:
I'm trying to automate a series of commands in ACCESS to import a data file in XML format. Normal procedure: -Start "MS Access" -Click "File->Get External Data->Import" -Choose the appropriate "xml" file. -Select "Options" and click "Append Data to Existing Table(s). Currently I have a Visual C++ GUI program to organize the data and
6
1407
by: =?Utf-8?B?QWRyaWFuIEpvbmVz?= | last post by:
Hi, I need to regularly check an FTP folder for the presence of a file, and if found, run a routine. Given that this is all on our ISP's servers, what is the best way to automate such a routine in ASP.NET? The end target of the routine is likely to be a MySQL database. If we were using SQL Server, I assume I could use DTS to trigger the process, but I'm
2
1962
by: cmp80 | last post by:
Hi everyone, I will need to start importing data from an XML file into our Access database on a daily basis. I have tried to import the data directly into a table, but it separates out into different tables in the database. I have found that when I import it into an Excel spreadsheet, however, it stays together just fine. My question is, how can I automate the process from within Access? Is it possible to tell Excel to import the data...
2
1584
by: Bill | last post by:
I looking for a way to automate an import of a fixed with text file into access 2003. I know that I can use the DoCmd.TransferText command to import the file but how do I go about setting where the column breaks are? Another problem that I have is that the data I need to get from the text file is on different lines. The text file contains data about the number of hours a employee has worked, but the name and the number of hours are on...
6
1165
jamesd0142
by: jamesd0142 | last post by:
Hi here's the background, i have a process that takes place, there are four manual steps and i want to create a small program that automates them all. the one im stuck with is this. a log file is created in notepad, at the moment im opening the file in wordpad and saving as. the reason being notepad is not formated correctly for me to import into sql server 2000, as the lines are more than 8000 characters long because notepad cannot...
0
774
by: Mike Driscoll | last post by:
Michael Harris wrote: I don't know why this is happening, so I recommend posting it to the pywin32 group: http://mail.python.org/mailman/listinfo/python-win32 You might also check out the PAMIE project: http://sourceforge.net/projects/pamie SendKeys would also work, but it's kind of messy. Mike
11
14421
by: KingKen | last post by:
Database A is distributed across 21 different agencies in a wide geographic area. They all use Access 2007 to run the database. Head office has a copy of database A and would like to have it store all the data from all its outlying agencies. This would require each agency to export the data to a text file and email it to head office. The user at head office would then import this data into the existing database appending all records to its...
0
8612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.