473,386 Members | 1,798 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,386 software developers and data experts.

Access 2000: Filter from Queried results

My name is Wes and I have been working with Access for a few years now,
though I know I'm not an expert, this forum has helped me many times without
me needing to post a question. Alas, I have found a problem where the answer
was not as obvious.

The database I'm working on is very simple. It pulls from multiple source
data files and reorganizes the data. The relationship is created by relating
the city name and or county name fields within each source file. My first
problem was that the formatting was different in some source files, but a
friend of mine showed me how to do the comparison with a LIKE statement.

FROM [Employment by City], [Population by City]
WHERE ((([Population by City].[Place Name]) Like ([Employment by
City]![Area] & "*")));

Where [Place Name] might be 'Tyler City' and [Area] might only be 'Tyler'
but the fields would still be related and the data combined.

The problem is, I now need a way to use this query as a filter against
another source file and remove any matching entries. Basically the exact
opposite of the previous sql code.

I made a table from the queried results and now I don't have the problem of
different formats because the query included the [Place Name] field which is
the field I need filtered (say that five times quickly). I assumed that I
could use a simple <> or Not statement to remove any entries from the large
[Population by City] table, but instead I either entered an infinite loop or
was eventually given the entire table. Sadly I don't see where I'm making a
mistake, so any advice is welcome, I'm at a loss. I have researched this
source as well as my three Access bibles and nowhere do I see what I want
done accomplished, is it a pipe dream or am I just making a mistake
somewhere? Thanks for any help

Wes Dabney
Nov 12 '05 #1
1 2081
FROM [Employment by City], [Population by City]
WHERE ((([Population by City].[Place Name]) Like ([Employment by
City]![Area] & "*")));

Where [Place Name] might be 'Tyler City' and [Area] might only be
'Tyler'
but the fields would still be related and the data combined.

The problem is, I now need a way to use this query as a filter against
another source file and remove any matching entries. Basically the
exact
opposite of the previous sql code.
Sounds like you need something like:

FROM [Employment by City], [Population by City]
WHERE (((([Population by City].[Place Name]) Like ([Employment by
City]![Area] & "*")))
AND [Population by City].[Place Name] NOT IN (SELECT [PlaceName] FROM
[SomeTable] WHERE...));
Nov 12 '05 #2

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

Similar topics

4
by: Jim | last post by:
Hi I'm looking to take an existing XML document, query for certain nodes, and 'recreate' the document with just the relevant nodes. I'm currently using XPath - I have established the pattern that...
0
by: M. Farrenkopf | last post by:
I am in the process of converting a Jet database to ADP using SQL Server 2000. Most of this conversation has been smooth, but now I'm running across a problem that has me stumped. Access 2000 SP3...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
12
by: dennist685 | last post by:
How to get an Access database on the web from my own computer I have an Access database project in inetpub/wwwroot/Access2 . I build it, and then press cntrl-F5. - I still get the development...
31
by: Cy | last post by:
Hi all, I wanted to start a thread that might help many of us. I worked for a company for 12 years, until this past Christmas when they let me go. Getting rid of the higher dollar guys, in...
1
by: gm | last post by:
Hi; I have written a database that tracks all the installation we have ever done. I have a small heating company. I have recently started keeping a directory of digital photographs of the...
13
by: terrybens | last post by:
Hello, I'm using a Microsft Access 2000 Project (adp file) connected to MS SQL Server 2000 database. I have created a continous form having a detail part (results of the query) and a footer...
5
by: Dave | last post by:
I need to filter an Access 2000 result set in ASP 30 using the ADO recordset.filter. I build the filter in pieces. The first clause of the filter is this... WHERE word LIKE 'S%' ... to...
12
truthlover
by: truthlover | last post by:
I have a problem that's difficult to explain, so please be patient. The database is in 2000 format, though I'm doing most of the designing in 2007 (saved as 2000 format, of course) I have a...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
Oralloy
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,...

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.