473,385 Members | 1,707 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.

query with 2 linked databases

Hello,
I have 2 linked databases. I have one that is emptied into the other at the end of the week. Is there a way I can set up a query that will search both databases and give me the info on a single recordset? for example, In one of my tables I have the user enter in a bag number and tag number. What I want to do is be able to set up a query and have it search both linked tables for the tag number and return it into a single form or whatever. Both Tables will be almost identical, except one is named recievedbags and one is recievedbags1.
SHould I set up a query or do it programmically (which I am pretty sure I can do).

Rude
Mar 18 '08 #1
1 1345
jyoung2
32
you can use a union query in Access I would have your search querys feed into one Union query and then output however you desire. the union would look like

Expand|Select|Wrap|Line Numbers
  1. SELECT recievedbags.*
  2. FROM recievedbags 
  3. union
  4. SELECT  recievedbags1.*
  5. FROM  recievedbags1
The key to unions is the names of the filds need to be the same. If you are doing Queryies then replace the recivedbags with the name of the Query.



Hello,
I have 2 linked databases. I have one that is emptied into the other at the end of the week. Is there a way I can set up a query that will search both databases and give me the info on a single recordset? for example, In one of my tables I have the user enter in a bag number and tag number. What I want to do is be able to set up a query and have it search both linked tables for the tag number and return it into a single form or whatever. Both Tables will be almost identical, except one is named recievedbags and one is recievedbags1.
SHould I set up a query or do it programmically (which I am pretty sure I can do).

Rude
Mar 19 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Bernie | last post by:
Greetings, I have 3 servers all running SQL Server 2000 - 8.00.818. Lets call them parent, child1, and child 2. On parent, I create a view called item as follows: CREATE view Item as...
3
by: G rumpy O ld D uffer | last post by:
This is probably a 'Low-Level' question to all the ACCESS experts but I've only been using ACCESS for a couple of weeks. I've been given 30+ (and counting) separate 'Weekly' Databases which all...
6
by: Steve O. | last post by:
HI, (Access 97) The query grid has lost the ability to recognize or "pick up" the relationships that exist between the tables. I have to manually connect the tables in the grid. Then upon...
7
by: bill.brennum | last post by:
Hi, Have a number of Access Databases that I inherited and want to zip a few of them. My concern is that other active Microsoft Applications may be linking to the database or its tables. Is...
1
by: RichardF | last post by:
Is it possible to run a single query that pulls data from multiple tables in multiple databases, perhaps also from multiple SQL Servers? Any input would be appreciated. Thanks! RichardF
6
by: gerbski | last post by:
Hi all, I am relatively new to ADO, but up to now I got things working the way I wanted. But now I've run into somethng really annoying. I am working in MS Access. I am using an Access...
2
by: crimestarter.jim | last post by:
Good afternoon, I am not the most informative when it comes to Microsoft Access. I have a user that is using Access 2003 and has 1 excel spreadsheet linked to 3 different databases. They are...
11
by: funky | last post by:
hello, I've got a big problem ad i'm not able to resolve it. We have a server running oracle 10g version 10.1.0. We usually use access as front end and connect database tables for data extraction....
9
by: Sinner | last post by:
Hi, I have a field name 'USER' in tableMAIN. How do I replace the user names with corresponding user names. I can do that in xl using vlookup but now I'm trying to find a way to do that in...
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: 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?
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
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
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...

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.