473,399 Members | 3,401 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,399 software developers and data experts.

Query and Table Problem

Bob
Hi Everybody

I have a table called tblListingInbox which is connected to my MS
Outlook InboxFolder

This is the underlying table for a query called:
qryListingConfirmed

In qryListingConfirmed there is a field called
InvoiceNumber: ([Subject])
(which obviously does not appear in the table). This is an Invoice
Number and is composed from the first 7 figures from the subject field
and is a part of the subject field.

This works fine so far.

I have another table tblInvoice, that has existing 7 figure invoice
numbers in it, in a field called InvoiceNumber.

My question is;
Without making tblInvoice part of the query, how can I get
qryListingConfirmed to Lookup tblInvoice and:

1. Show InvoiceNumber's in qryListingConfirmed that are NOT ALREADY
in tblInvoice.

2. Not Show InvoiceNumber's in qryListingConfirmed if they are
ALREADY in tblInvoice.

Thanks

Smiley Bob



Nov 13 '05 #1
2 1233
> Without making tblInvoice part of the query, how can I get
qryListingConfirmed to Lookup tblInvoice and:
I don't know that you can. To do what you're trying to do, go to the query
tab in the main database window and click on the New Query button, not one
of the options in the window, and choose the Unmatched Query wizard. This
will walk you through creating a query that will show items in one table
that aren't in the other.

--
Wayne Morgan
MS Access MVP
"Bob" <sm*******@hotmail.com> wrote in message
news:je********************************@4ax.com... Hi Everybody

I have a table called tblListingInbox which is connected to my MS
Outlook InboxFolder

This is the underlying table for a query called:
qryListingConfirmed

In qryListingConfirmed there is a field called
InvoiceNumber: ([Subject])
(which obviously does not appear in the table). This is an Invoice
Number and is composed from the first 7 figures from the subject field
and is a part of the subject field.

This works fine so far.

I have another table tblInvoice, that has existing 7 figure invoice
numbers in it, in a field called InvoiceNumber.

My question is;
Without making tblInvoice part of the query, how can I get
qryListingConfirmed to Lookup tblInvoice and:

1. Show InvoiceNumber's in qryListingConfirmed that are NOT ALREADY
in tblInvoice.

2. Not Show InvoiceNumber's in qryListingConfirmed if they are
ALREADY in tblInvoice.

Thanks

Smiley Bob


Nov 13 '05 #2
Bob
On Tue, 01 Jun 2004 12:39:25 GMT, "Wayne Morgan"
<co***************************@hotmail.com> wrote:
Without making tblInvoice part of the query, how can I get
qryListingConfirmed to Lookup tblInvoice and:


I don't know that you can. To do what you're trying to do, go to the query
tab in the main database window and click on the New Query button, not one
of the options in the window, and choose the Unmatched Query wizard. This
will walk you through creating a query that will show items in one table
that aren't in the other.


Hi Wayne

You have started me on a completely new train of thought.

I made an unmatched records query and then copied it and altered the
"Is Not Null" to "Is Null" in One of them.

Between the 2 Queries, I think I will be able to juggle them into
doing what I want.

Basic stuff I know, but it's easy to forget.

Thanks for the pointer.

Regards Smiley Bob

Nov 13 '05 #3

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

Similar topics

4
by: Orion | last post by:
Hi, This is kind of last minute, I have a day and a half left to figure this out. I'm working on a project using ms-sqlserver. We are creating a ticket sales system, as part of the system, I...
4
by: Apple | last post by:
1. I want to create an autonumber, my requirement is : 2005/0001 (Year/autonumber), which year & autonumber no. both can auto run. 2. I had create a query by making relation to a table & query,...
8
by: Maxi | last post by:
There is a lotto system which picks 21 numbers every day out of 80 numbers. I have a table (name:Lotto) with 22 fields (name:Date,P1,P2....P21) Here is the structure and sample data: ...
6
by: jjturon | last post by:
Can anyone help me?? I am trying to pass a Select Query variable to a table using Dlookup and return the value to same select query but to another field. Ex. SalesManID ...
4
by: Macroman | last post by:
MS Access XP, running on Win XP, Processor 2.4Ghz , 512Mb RAM, 40Gb Hard drive Table 1 has 167,000 records and contains the following fields tblone_custID tblone_easting tblone_northing ...
10
by: Robert | last post by:
I am an attorney in a non-profit organization and a self-taught programmer. I'm trying to create a client db that will allow me to search for potential conflicts of interest based either on Social...
0
by: phlype.johnson | last post by:
I'm struggling to find the best query from performance point of view and readability for a normalized DB design. To illustrate better my question on whether normalized designs lead to more complex...
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....
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
9
by: QCLee | last post by:
Sir can you help me to transfer my Access Query to MS excel? i have a command button on the form to export the parameter query named "HVACWindwardQuery" to excel spreadsheet and i got the codes...
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
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...
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
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...
0
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

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.