Hello,
I need some help, I have about 200 databases that are copies of an original database that has a similiar table in all of the databases, called "tblCodeboo k".
What I am trying to do is to create a macro that will go into each of the 200 databases, run an identical "unmatched query" to find any records that might be in one of the copies of the "tblCodeboo k". There is a shared primary key in the "tblCodeboo k" which is a StoryID and EvaluatorID which together is unique.
Here is my query:
SELECT tblcodebook1.St oryID, tblcodebook1.Ev aluatorID
FROM extracodebook LEFT JOIN tblCodebook ON (extracodebook. EvaluatorID
= tblCodebook.Eva luatorID) AND (tblcodebook1.S toryID =
tblCodebook_mas ter.StoryID)
WHERE (((tblCodebook_ master.StoryID) Is Null) AND
((tblCodebook_m aster.Evaluator ID) Is Null));
I can get the query to run in one database of course, but I am having problems trying to write a macro that does connections to each of the 200 databases that I have so I can run this query in it.
I think an alternative is to try and get all of the "tblCodeboo k" tables into one database, then run the query, but I would like to somehow write some macro to do the connections to the databases programatically so I do not have to compile all of these tables I wish to query into one database.
I am fluent in NI LabView, C++, and a little of VB.
Please help! Any help would be greatly appreciated!!!! !!
2 1642
Sorry, here is my correct query, had a mistype...
SELECT tblcodebook1.St oryID, tblcodebook1.Ev aluatorID
FROM tblcodebook1 LEFT JOIN tblCodebook_mas ter ON (tblcodebook1.E valuatorID = tblCodebook_mas ter.EvaluatorID )
AND (tblcodebook1.S toryID = tblCodebook_mas ter.StoryID)
WHERE (((tblCodebook_ master.StoryID) Is Null) AND
((tblCodebook_m aster.Evaluator ID) Is Null));
my tables for this query are tblcodebook1 and tblcodebook_mas ter
nico5038 3,080
Recognized Expert Specialist
Sorry, here is my correct query, had a mistype...
SELECT tblcodebook1.St oryID, tblcodebook1.Ev aluatorID
FROM tblcodebook1 LEFT JOIN tblCodebook_mas ter ON (tblcodebook1.E valuatorID = tblCodebook_mas ter.EvaluatorID )
AND (tblcodebook1.S toryID = tblCodebook_mas ter.StoryID)
WHERE (((tblCodebook_ master.StoryID) Is Null) AND
((tblCodebook_m aster.Evaluator ID) Is Null));
my tables for this query are tblcodebook1 and tblcodebook_mas ter
You could create a giant UNION query like: -
select "db001" as Origin, StoryID, EvaluatorID from tblcodebook1 IN C:\VB\Codebook1.MDB
-
UNION
-
select "db002" as Origin, StoryID, EvaluatorID from tblcodebook1 IN C:\VB\Codebook2.MDB
-
UNION
-
...etc...
-
Becuase of the Origin field constant you can check where the values are available or not.
Getting the idea ?
Nic;o)
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Reply via newsgroup |
last post by:
Folks,
When performing an update in mysql (using PHP), can I find out how many
records were matched?
mysql_affected_rows() won't work... and I have the following problem
that I thought I could resolve with a simple function:
Example:
I have 50records - I want to update a selection of the recods - some,
|
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.
Basically I want to say:
If fk_ID is in list then
do these statements to that record
|
by: Colleyville Alan |
last post by:
I want to extract some records that are common to three tables, but not
contained in the fourth. Following what I have see in the archives and also
trying the unmatched records query wizard, if I only use one of those three
tables and use a LEFT JOIN to the fourth and set the target field in the
fourth table to null, I get the unmatched records.
However, if I link the three tables together and then want to exclude
records in the fourth...
|
by: Damon Grieves |
last post by:
Hi
I just want to be sure I understand how the Access client works. If I have
an Access back end with a million records on a server and an Access client.
If the client is installed on the users pc and run by the user...does Access
drag the whole million records across the LAN when we call up one record ie
filters for that record locally? If the client is on the same server as the
back end, and the user starts up the client on the server...
|
by: rfranzl |
last post by:
Hello,
I need some help, I have about 200 databases that are copies of an original database that has a similiar table in all of the databases, called "tblCodebook".
What I am trying to do is to create a macro that will go into each of the 200 databases, run an identical "unmatched query" to find any records that might be in one of the copies of the "tblCodebook". There is a shared primary key in the "tblCodebook" which is a StoryID and...
| |
by: MLH |
last post by:
For many versions, Access has had query wizard to
identify and list records in table A that had no matching
records in table B. But suppose that in addition to that,
I would like to see records in table B that have no matching
records in table A - at the same time and in the same dynaset.
Can that be done?
Suppose you have tblDadsGroceryList and tblSonsGroceryList
and that they should contain the same items - but they don't.
And for a...
|
by: Sharon V |
last post by:
This is driving me crazy - my unmatched query wizard will not display
field names for any tables I choose. All my other query wizards work
properly. I am running Access 2003. I have tried using both 2003 and
2000 formats. It's not my access databases because the wizard works
correctly over the network using other people's Access software. It is
with every Access mdb database I have tried. I have checked every
setting imaginable but...
|
by: Charlotte |
last post by:
Hi,
i've googeled to find a asp-script that can compare all the records in two
different access databases
the mdb's have exactly the same tables
what i want is that (the output) all the differences comes in a html-table
in a webpage
can anybody help me, are give me a example ?
thanks
|
by: Bizmark |
last post by:
Access2003,
Windows XP Pro OEM user OS,
Windows Sever 2000 server OS.
Not-so-recently I inherited 3 Access DB's from another company merging with our own. Our own system works off of SQL server, but mainting these databases is critical to keeping the business running. 1 database in particular has been causing problems. Along the course we have had a few problems with random records corrupting (new and old) and Values within fields...
|
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: 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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |