473,418 Members | 2,064 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,418 software developers and data experts.

Append Problems

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
Nov 13 '05 #1
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

Nov 13 '05 #2

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

Similar topics

8
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...
9
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...
1
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; ...
3
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...
42
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
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
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
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...
0
Oralloy
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,...
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...
0
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...
0
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,...

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.