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. 1 1372
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
by: batman |
last post by:
i have a text file that is like:
date = OCT0606
asdf
sdaf
asdfasdgsdgh
asdfsdfasdg
START-OF-DATA
asdfasdfg
asdfgdfgsfg
|
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...
|
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...
|
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...
|
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....
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
| |