Have two base queries used for mailing labels with
id,name,address ,city,state,zip that are combined via a union query.
One base query uses home address; the other base query uses biz
address. I only want one label per person. In a few cases, I have a
record with both a home address and a biz address, which I don't want
in the labels. How or can I make the union query omit an id in the biz
address base query IF that same id has a record in the base home
address query? I'm drawing a blank on this one. Thanks for any
advice. 2 2286
Go to the database window, click on Queries and click on New. You'll see you can
create an unmatched query. Use that option to create a new query and find all
the records in your biz base query that do not match any records in your base
home address query. Then build a new union query combining the new query with
the base home address query. Your new union query will not now have any
duplicate records.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications re******@pcdata sheet.com www.pcdatasheet.com
"M Stery" <ms****@soon.co m> wrote in message
news:8b******** *************** **@posting.goog le.com... Have two base queries used for mailing labels with id,name,address ,city,state,zip that are combined via a union query. One base query uses home address; the other base query uses biz address. I only want one label per person. In a few cases, I have a record with both a home address and a biz address, which I don't want in the labels. How or can I make the union query omit an id in the biz address base query IF that same id has a record in the base home address query? I'm drawing a blank on this one. Thanks for any advice.
Perfect. Thanks so much.
"PC Datasheet" <sp**@nospam.sp am> wrote in message news:<3d******* ********@newsre ad3.news.atl.ea rthlink.net>... Go to the database window, click on Queries and click on New. You'll see you can create an unmatched query. Use that option to create a new query and find all the records in your biz base query that do not match any records in your base home address query. Then build a new union query combining the new query with the base home address query. Your new union query will not now have any duplicate records. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: M Stery |
last post by:
Have two base queries used for mailing labels with
id,name,address,city,state,zip that are combined via a union query.
One base query uses home address; the other base query uses biz
address. I only want one label per person. In a few cases, I have a
record with both a home address and a biz address, which I don't want
in the labels. How or can I make the union query omit an id in the biz
address base query IF that same id has a record in...
|
by: Jason |
last post by:
I have a primary form which is used to enter/edit data in a table
named Test_Results. On this primary form there is a subform which
displays site addresses. This subform is linked to the primary form
by field named TestID. The subform is used just for displaying site
address data, data which is stored in another table named
Total_Site_Address. In the Total_Site_Address table there are
numerous fields that form the site addresses...
|
by: snOOp |
last post by:
I am trying to combine the data from two similar tables into one
query, but I need for all of the records from both tables to show up
and I want the ones that have matching 'emplid' to be combined into
one record showing both the 'empstatus' and 'strole' fields.
The following query works, but does not combine the matching records:
SELECT givenname, sn, empstatus, emplid, ssn FROM dbo_EmpData
WHERE empstatus='A'
UNION ALL SELECT...
|
by: Brian |
last post by:
I'm trying to find a way to search multiple tables for the same record.
Say I have 3 tables all with a name column, I need to search all 3
tables and find matching names. Is there an easy way to accomplish this?
|
by: mattytee123 |
last post by:
I have about 20 tables, of which I would like to do a union query and
count of how many of each different code there is?
The simplified verson of the table is structured like this.
Code Count
1234 1
2468 1
1234 1
2468 1
| |
by: Zeljko |
last post by:
I'm creating Address book.
Header of the main form (frmAddress) contains combo box (cboFilter) to
filter records by Occupation on main Form(Ocupation1). That's working. Combo
box also have "Show All" in one row.
==Combo box query:
SELECT tblOCUPATION.id, tblOCUPATION.txtOcupation1 FROM tblOCUPATION UNION
Select "(All)" as Bogus, Null as AllChoice From ;
==Combo box event:
If IsNull(Me!) Then
|
by: aayushi22 |
last post by:
Hi
Need your expert help on the following
i have a table with the following records
EMP ID
Req No
Candidate name 1
candidate status 1
candidate name 2
|
by: kcdoell |
last post by:
Hello:
I am trying to create a union query but do not have a lot of experience. Basically I have the below tables:
The Tables:
Table Name = tblPrior
CreditRegIDFK; Number; Foreign Key for the Credit Region ID
|
by: Hamayun Khan |
last post by:
Hi All
I am using the following query to select records from two tables.
Select JobTitle,JobDesc,Scraped,logoimage,JobPostID,SchoolID,web,MemType,InstitutionName,PayScale,LEA,Contract as ContractType,HoursAbl,StartDate,ClosingDate,asap from tblJobScrap
Union ( SELECT tblJobPost.JobTitle,tblJobPost.JobDesc,Scraped,tblSchools.logoimage,tblJobPost.JobPostID,tblJobPost.SchoolID,tblSchools.web,cast(tblJobPost.MemType as nvarchar(255)) as...
|
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: 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: 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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |