All,
Users of the database I have built receive an automated text file from
one of our systems at work via e-mail. A problem with the text file exists
which I have no control over. The problem is that the set and unit qty are
doubled on the last line of each ASN. An example of the text file is below:
"2005-01-27","06.00.00","000000000000000000000000082287","1 4112",85070,1163,7338,102,10,480845,"B","N",360,2, "FE686
KKTU7329032"
"2005-01-27","06.00.00","000000000000000000000000082287","1 4112",85070,1163,7338,102,11,480846,"B","N",720,4, "FE686
KKTU7329032"
The fields are date, time,
ASN,PO,Vendor,Class,Style,Color,Size,Sku,Packtype, Ratio,Units,Sets,Ref.
There maybe be several PO's within an ASN and several Sku's within a PO. The
text file arrives in order of ASN -> PO -> Sku and it is always the last sku
from an ASN which has the Sets/Units doubled.
Can anyone suggest a way in which to remove the "Doubling" during the append
into my table?
Many thanks,
Mark 1 1568
"Mark" <ma**********@ntlworld.com> wrote in message
news:sU***************@newsfe5-win.ntli.net... All, Users of the database I have built receive an automated text file from one of our systems at work via e-mail. A problem with the text file exists which I have no control over. The problem is that the set and unit qty are doubled on the last line of each ASN. An example of the text file is
below:
"2005-01-27","06.00.00","000000000000000000000000082287","1 4112",85070,1163,
7338,102,10,480845,"B","N",360,2,"FE686 KKTU7329032"
"2005-01-27","06.00.00","000000000000000000000000082287","1 4112",85070,1163,
7338,102,11,480846,"B","N",720,4,"FE686 KKTU7329032"
The fields are date, time, ASN,PO,Vendor,Class,Style,Color,Size,Sku,Packtype, Ratio,Units,Sets,Ref.
There maybe be several PO's within an ASN and several Sku's within a PO.
The text file arrives in order of ASN -> PO -> Sku and it is always the last
sku from an ASN which has the Sets/Units doubled.
Can anyone suggest a way in which to remove the "Doubling" during the
append into my table?
If you can determine, after the fact, which was the last record (remembering
that relational tables are, by definition, unordered so you can't rely on
"MoveLast" which moves to the record that is physically last), then you can
just go in and recalculate that field.
If you want to intercept it "on the way in", you can use File I/O to read,
maniupulate, and write your data.
I can't think of an approach to use with Access import or TransferText.
Larry Linson
Microsoft Access MVP This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tom |
last post by:
Hi,
I have a log file and of course I want to add the new information to the
end of that log file. Unfortunately I always delete the old information
and only append the current info.
Right now...
|
by: JMCN |
last post by:
hi-
i have inherited an access 97 database that keeps track of the loans.
i have been running into referential intergrity problems when i try to
append new loans to table.
first of all is a...
|
by: Aaron |
last post by:
Hello fellow programmers,
I am trying to run an append/update query from code, a command button
on a form initiates the queries.
the format i am using is;
...
|
by: wvmbark |
last post by:
First time poster... I just found this forum and it appears there's plenty of people here that could make short work of problem that's been driving me absolutely bonkers for months.
Every day we...
|
by: Armin |
last post by:
Hi,
just a dumb question.
Let a =
Why is the value of a.append(7) equal None and not ??
--Armin
|
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: 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: 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...
|
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,...
|
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: 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...
|
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,...
| |