473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to do a Transfer Text Batch Group

I would guess that someone has done this before, but I cannot seem to
get it to work. In a given month, there are hundreds of updates
received that need to be entered. It is obviously a slow and tedious
task to import them one at a time. What I would like to do is to place
all of the updates into one directory and import them all at one time.

However, DoCmd.TransferText acImportDelim, , "Updates" , "C:\Item
Updates\*.txt" , True does not work. The files are named
"Update123.txt, Update245.txt, etc." so each is unique. Of course, hard
coding these as a separate line will work, but that is way too time
consuming and also subject to change, not to mention future problems.
Perhaps someone could share a piece of code to handle this.

Any insight or assistance will be appreciated. Thanks.

Nov 13 '05 #1
1 1372
rkc
Rolan wrote:
I would guess that someone has done this before, but I cannot seem to
get it to work. In a given month, there are hundreds of updates
received that need to be entered. It is obviously a slow and tedious
task to import them one at a time. What I would like to do is to place
all of the updates into one directory and import them all at one time.

However, DoCmd.TransferText acImportDelim, , "Updates" , "C:\Item
Updates\*.txt" , True does not work. The files are named
"Update123.txt, Update245.txt, etc." so each is unique. Of course, hard
coding these as a separate line will work, but that is way too time
consuming and also subject to change, not to mention future problems.
Perhaps someone could share a piece of code to handle this.


Perhaps:

Sub AllFiles()
Dim s As String
s = Dir("C:\ItemUpdates\Update*.txt")

While Len(s) > 0
DoCmd.TransferText acImportDelim, , "Updates" , s
s = Dir
Wend
End Sub
Nov 13 '05 #2

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

Similar topics

6
by: Darcy | last post by:
I would like for an ASP page to transfer a text file (from the same directory the ASP file is in) to another Web server. I don't mind if the code is in ASP or VB. Any ideas? I suspect that...
1
by: Dave S | last post by:
Hello all, Hope this is the correct group for this question. I couldn't find a vb beginners group. I am getting overwhelmed and need some help. I did this very easily in a batch file (only three...
2
by: Todd_M | last post by:
I was wondering what anyone might suggest as "best practice" patterns for streaming out fixed formatted text files with C#? Let's say we get our data in a dataset table and we need to iterate over...
5
by: aure_bobo | last post by:
Hi all, I'm currently developing a system with several webapps in ASP.NET/C#. One of my website is used to login user : I will call this website Webapp1. Depending on the user attributes, I...
4
by: ed | last post by:
Hi all, I'm very new to vb (2nd day) and I need to create a small app that will replace my old batch file with a flashy gui. I had some experience with access 2.0 which helps ;) What I would...
15
by: batman | last post by:
i have a text file that is like: date = OCT0606 asdf sdaf asdfasdgsdgh asdfsdfasdg START-OF-DATA asdfasdfg asdfgdfgsfg
38
by: Tom | last post by:
I need my data generating C program on computer #1 to export small amounts of data (one - 40 byte data structure) periodically (once per minute) to a C program on computer #2. I am considering...
1
by: lygine | last post by:
Dear all, I am new to .net, therefore needed your advice/input how to write a program to transfile file from backend (batch job) using https protocol? I need to transfer flat file as batch...
0
by: vasikaran | last post by:
Hi , i hava one ftp script in batch file programming , ftp script is working fine.. but my is i dont know how much files and what are files avaiulable in remote folder ,,,, if any errors or...
0
by: =?Utf-8?B?UnVzdHlfUm9zZXI=?= | last post by:
Hi everyone, I'm having some issues figuring out how to complete certain tasks with a batch file, whether it be not knowing the right syntax or if it can even be accomplished with a batch file....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.