S
SNA400
Hi - Not too sure if this is possible, or if i'm being a dillweed! And
please bear with me - it may seem a long explanation but it does get there in
the end!
I have an CSV file that has to be imported every day, with the following
fields
DATE, Client, Client Name, M/House No., Mailing House, Notified Bags,
Notified Items, Receipted Bags, Receipted Items, Outstanding Bags,
Outstanding Items. This file is normally around 15000 rows
I then have to remove the Notified Bags and Items and the Outstanding Bags
and Items, sort this by Receipted Bags, Remove all zero entries - which takes
the file down to around 350 - 400 rows, THEN sort by Client (which is a
Number), move certain types of client together - bear with me we'll get there
soon - Then add in a field of receipt depot and then go through manually
adding in the three digit depot code to each row where the mailing house goes
to that depot. THEN we have to sort by depot, keeping the client types
together to show which depot has receipted how many bags by client type.
This process will take me around 20 - 25 minutes, but I don't have to do
this now - it's been passed onto another member of staff and it takes him an
hour+ to complete.
Now we get to the question - I have created an Access D/B with a table that
assigns depot number to postcode area (DPT1) and a table of all the mailing
houses with their individual postcodes on (MHP1). I have assigned
relationships to the different fields of Postcode (between DPT1 and MHP1) and
Mailing House (between MHP1 and the CSV file)
I have tried to write a query that removes all zero entries and assigns the
correct depot number to the mailing house (utilising the relationship) , but
all I seem to be getting is every entry assigned to every depot
HELP!!!
Simon
please bear with me - it may seem a long explanation but it does get there in
the end!
I have an CSV file that has to be imported every day, with the following
fields
DATE, Client, Client Name, M/House No., Mailing House, Notified Bags,
Notified Items, Receipted Bags, Receipted Items, Outstanding Bags,
Outstanding Items. This file is normally around 15000 rows
I then have to remove the Notified Bags and Items and the Outstanding Bags
and Items, sort this by Receipted Bags, Remove all zero entries - which takes
the file down to around 350 - 400 rows, THEN sort by Client (which is a
Number), move certain types of client together - bear with me we'll get there
soon - Then add in a field of receipt depot and then go through manually
adding in the three digit depot code to each row where the mailing house goes
to that depot. THEN we have to sort by depot, keeping the client types
together to show which depot has receipted how many bags by client type.
This process will take me around 20 - 25 minutes, but I don't have to do
this now - it's been passed onto another member of staff and it takes him an
hour+ to complete.
Now we get to the question - I have created an Access D/B with a table that
assigns depot number to postcode area (DPT1) and a table of all the mailing
houses with their individual postcodes on (MHP1). I have assigned
relationships to the different fields of Postcode (between DPT1 and MHP1) and
Mailing House (between MHP1 and the CSV file)
I have tried to write a query that removes all zero entries and assigns the
correct depot number to the mailing house (utilising the relationship) , but
all I seem to be getting is every entry assigned to every depot
HELP!!!
Simon