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.TransferT ext 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 1389
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.TransferT ext 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:\ItemUpd ates\Update*.tx t")
While Len(s) > 0
DoCmd.TransferT ext 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 there is a way of having an ASP page conduct an FTP session
to transfer the file.
|
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 lines), but DOS is too
limited and the use of the batch is presenting other problems (file is
compressed so I get garbage characters in the output file which I can't
edit).
I also wanted some other functionality added and decided to try VB6.
|
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 thousands..potentially tens
of thousands of rows to create a properly formatted text file -- like an ACH
file, for example. In there you typically have a header, a body block of
detail rows and a trailer. (The trailers usually contain sums of the...
|
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 will send the user to an another
website (let's Webapp2 in my example), where I would like to login
automatically the user with the credentials entered in WebApp1.
|
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 like is to get the output of the batch file to display on
the gui as the batch file is running.
if some of you understand unix... I want this: tail -f
/var/log/messages
| |
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 having computer #1 to create two duplicate data files
sequentially. (file_1.dat & file_2.dat).
Then, Computer #2 tries to open file_2.dat and upon failure it opens
file_1.dat.
|
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 job to be running for every 5min.
will appreciate for your input and advice.
thanks,
Lygine.
|
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 failures occurring in ftp process how to trace failure files...
everything in batch file script only...
this is my ftp script ...
@ echo off
|
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. Heres my problem.
I work in the IT department at a local bank and we are in the
process of deploying new PCs for some of the employees with older work
stations. I just finished staging about a dozen of them and in the next month
or so we will...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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...
|
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...
|
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...
|
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...
| |
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();...
|
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...
| |