Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Comparing two fields when one is null

Posted on 2014-01-17
2
Medium Priority
?
491 Views
Last Modified: 2014-01-17
I have a set of queries that compare the values of columns in two different tables and returns values for those that are different.  

In the attached file, it works fine for my City Query, however, with my Company Query you can see that when one of the tables has a null value it doesn't work.  

Any suggestions as to how to address this?  Thanks!
SAMPLETEST.accdb
0
Comment
Question by:daisypetals313
2 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 2000 total points
ID: 39789349
Try this modification
SAMPLETEST.accdb
0
 

Author Closing Comment

by:daisypetals313
ID: 39789387
Thanks, this is it!

I also added a 3rd line to the query reversing the null/not null so that the Compare would work both ways.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question