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

Compare a list of values in ASCII file to a column in Access table

I'm working with ASCII data files provided by data vendors in a
standard format. These files contains lots of various pieces of
information for each reporting entity in the file.

Currently I have code to read these ASCII files and arrange the data
into a managable table structure. There is a key field unique to each
entity called PROPNUM.

The workflow is such that one ASCII file (file1.txt) is loaded into
this system. I have a data loading MS-Access database (loader.mdb)
that puts data from the ASCII file into another Access database
(target.mdb). Target.mdb contains a table named Master with the
PROPNUM key field.

I need to develop a routine that checks new ASCII datafiles (e.g.,
file2.txt) for PROPNUMs that are already in Target.Master.

I've started developing this routine in IsItInTarget.mdb. I've got
PROPNUMs from file2.txt loaded into a table in IsItInTarget.mdb. How
can I search for the presence of each PROPNUM in Target.mdb and report
them.

One simple idea is to use a MsgBox statement to report each occurence,
but someone may have a better idea.

Appreciate any suggestions.

Thanks, Mark
Nov 13 '05 #1
3 1969
Why not see if the "new queries" "find duplicates wizard helps"

Phil
"Mark" <mr****@ogclearinghouse.com> wrote in message
news:9b**************************@posting.google.c om...
I'm working with ASCII data files provided by data vendors in a
standard format. These files contains lots of various pieces of
information for each reporting entity in the file.

Currently I have code to read these ASCII files and arrange the data
into a managable table structure. There is a key field unique to each
entity called PROPNUM.

The workflow is such that one ASCII file (file1.txt) is loaded into
this system. I have a data loading MS-Access database (loader.mdb)
that puts data from the ASCII file into another Access database
(target.mdb). Target.mdb contains a table named Master with the
PROPNUM key field.

I need to develop a routine that checks new ASCII datafiles (e.g.,
file2.txt) for PROPNUMs that are already in Target.Master.

I've started developing this routine in IsItInTarget.mdb. I've got
PROPNUMs from file2.txt loaded into a table in IsItInTarget.mdb. How
can I search for the presence of each PROPNUM in Target.mdb and report
them.

One simple idea is to use a MsgBox statement to report each occurence,
but someone may have a better idea.

Appreciate any suggestions.

Thanks, Mark

Nov 13 '05 #2
Thanks Phil. It looks like the Find Duplicates query checks for more
than one occurance in a [table].[field]. In this case, there are two
tables involved. One table contains a list of PROPNUMs from the ASCII
file and the second table contains a list of PROPNUMs that have already
been loaded.

Mark Roach
Vice President Technical Resources
The Oil & Gas Asset Clearinghouse
Houston, Texas

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3
OK Mark

Try linking Table Master in Target.Mdb into IsItIntarget.mdb. I am asseming
that the new PROPNUMs are in a table called something line NewMaster
Then create a simple query based creating a query based on Master and
NewMaster and join the 2 PROPNUM fields. All the results in this query will
be where the 2 PROPMUMs are the same

HTH

Phil

"Mark Roach" <mr****@ogclearinghouse.com> wrote in message
news:41*********************@news.newsgroups.ws...
Thanks Phil. It looks like the Find Duplicates query checks for more
than one occurance in a [table].[field]. In this case, there are two
tables involved. One table contains a list of PROPNUMs from the ASCII
file and the second table contains a list of PROPNUMs that have already
been loaded.

Mark Roach
Vice President Technical Resources
The Oil & Gas Asset Clearinghouse
Houston, Texas

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 13 '05 #4

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

Similar topics

8
by: tom | last post by:
I am new to SQL administration. >From a list of IDs that are the primary key in one table (i.e. Customer Table), I want to make changes in tables that use those IDs as a foreign key. ...
5
by: Megan | last post by:
Hi everybody- I'm helping a friend with a music database. She has an old one and is creating a new one. She wants to compare records and fields in the old database with records and fields in the...
7
by: aaron.kempf | last post by:
team so i have a nice little list in sharepoint.. about 15k items i've got the simplest little join statement in access; and im trying to UPDATE the sharepoint list via an access query. so...
6
by: doncee | last post by:
I have a list box that is generated on a form by way of a Parameter Query. Problem is whenever I try to refer to the list box, i.e., to update the underlying table, I am getting a "null" value...
3
by: Richard Hollenbeck | last post by:
I have a column in a table that currently only has one record. That column is set to combo box. I want the user to be able to lookup values from the column itself--the very same column--rather...
17
by: Mark A | last post by:
DB2 8.2 for Linux, FP 10 (also performs the same on DB2 8.2 for Windoes, FP 11). Using the SAMPLE database, tables EMP and EMLOYEE. In the followng stored procedure, 2 NULL columns (COMM) are...
4
Rabbit
by: Rabbit | last post by:
Cascading Combo/List Boxes This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
6
by: napatel04 | last post by:
Hi everyone, I would like to know if there is a quick query someone can help me write for the following scenario. I think I can do this with VBA but since this is suppose to be a temp. solution,...
0
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,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...
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...

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.