Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 23rd, 2004, 02:41 PM
Authorized User
 
Join Date: Jun 2003
Location: Marikina, , Philippines.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rylemer Send a message via MSN to rylemer Send a message via Yahoo to rylemer
Default Multiple Not Equal

Hi! Good day
Can anyone correct my SQL Statement

SELECT EmpLastName
FROM Employee
WHERE EmpLastName <>"Espinosa" Or EmpLastName ="Lunar" Or EmpLastName ="Ramos";

I want to have a query ignore all the records with a LastName of "Espinosa, Lunar and Ramos.


Thanks in Advance.

Rylemer
Reply With Quote
  #2 (permalink)  
Old January 23rd, 2004, 02:44 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: Houston, Texas, USA.
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Default


SELECT EmpLastName
FROM Employee
WHERE EmpLastName <>"Espinosa" Or EmpLastName <>"Lunar" Or EmpLastName <>"Ramos";


Regards,

Beth M
Reply With Quote
  #3 (permalink)  
Old January 23rd, 2004, 03:09 PM
Authorized User
 
Join Date: Jun 2003
Location: Marikina, , Philippines.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rylemer Send a message via MSN to rylemer Send a message via Yahoo to rylemer
Default

Hi! Beth Still not working I Used your Query It shows all the record.

Thanks,
Rylemer
Reply With Quote
  #4 (permalink)  
Old January 23rd, 2004, 03:20 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: Houston, Texas, USA.
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This should work:

SELECT EmpLastName
FROM Employee
WHERE ((Not (Employee.EmpLastName)="Espinosa" And Not(Employee.EmpLastName)="Lunar" And Not(Employee.EmpLastName)="Ramos"));
Reply With Quote
  #5 (permalink)  
Old January 23rd, 2004, 03:34 PM
Authorized User
 
Join Date: Jun 2003
Location: Marikina, , Philippines.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to rylemer Send a message via MSN to rylemer Send a message via Yahoo to rylemer
Default

yeah it works thanks Beth I really appreciate your help.

Elmer :)
Reply With Quote
  #6 (permalink)  
Old January 23rd, 2004, 04:59 PM
Friend of Wrox
 
Join Date: Jul 2003
Location: Houston, Texas, USA.
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My pleasure. Sorry for the first hasty reply, but I'm glad we got it working.

Beth
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
INNER JOIN Not EQUAL rylemer Access VBA 3 May 8th, 2017 01:35 AM
What's behind the 'Equal' and 'LinkedList' buttons Everard Hughes BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 1 September 27th, 2008 08:44 AM
~* Total pages are not equal *~ chakravarthy_vr Reporting Services 2 October 13th, 2006 03:56 PM
Set form value equal to databse fs22 Javascript How-To 17 July 16th, 2004 04:39 AM
How to "Set" a function equal to a DataReader DittoToo ASP.NET 1.0 and 1.1 Basics 1 July 1st, 2003 10:15 AM



All times are GMT -4. The time now is 02:42 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.