Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Queries

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 08-21-2006, 05:54 AM
Novice
 
Join Date: Jun 2006
Posts: 7
hraup
Default Pull only if a specified value does not exist

I have a table where there is a checkbox for "Enrollment" and then a second field with a month. What should my query look like if I want to pull all records out where the checkbox is true but the month specified doesn't exist in the record.

Example Table (looking for the second field to be true but no July record):

Account | True | June
Account | True | July
Account2 | True | July
Account3 | False| null
Account4 |True | null

"Account" has a July record so this record should not pull
"Account2" has a July record so this record should not pull
"Account 3" is False so should not pull
"Account 4" is true and has no July - so this record should pull

Thanks in advance!
Reply With Quote
  #2  
Old 08-22-2006, 02:27 AM
wasim_sono wasim_sono is offline Windows XP Access 2007 (version 12.0)
Advanced Beginner
 
Join Date: May 2005
Location: Pakistan
Posts: 68
wasim_sono
Default

Dear hraup

You have to simply write down "Is Null" in month criteria and "true" in Account criteria.


Thanks.

Wasim
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Telling Query to Pull All Records by Combo Box tigers Forms 1 04-28-2008 12:47 PM
Pull Paremeter for query from current form value dymondjack Forms 1 02-14-2007 04:27 PM
Pull Parameter Value from Form dymondjack Queries 1 02-14-2007 04:15 PM
using a combo to pull up multiple values in the same field ronandamanda114 Forms 0 12-19-2006 06:44 PM
Pull Data from another table bbranco Access 0 07-27-2006 12:31 PM


All times are GMT -8. The time now is 08:22 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.