Query command for "not equal to".

Creating tables and queries
Post Reply
clixgamer
Posts: 2
Joined: Fri Sep 27, 2013 7:32 pm

Query command for "not equal to".

Post by clixgamer »

Well for some reason the query wizard is not working. So in design view I need to know the command for "not equal to".

I am trying to sort out all of the completed jobs in my table so that results from the query lists everything but the completed jobs. I have tried '<>Completed' , but the query results come back as nothing.

I have managed to do the opposite and query all of the completed jobs. That is not what I want.

Pleas help. :crazy:
OpenOffice 4.0.0
Windows 7
FJCC
Moderator
Posts: 9619
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Query command for "not equal to".

Post by FJCC »

The syntax is

Code: Select all

 <> 'Completed'
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
clixgamer
Posts: 2
Joined: Fri Sep 27, 2013 7:32 pm

Re: Query command for "not equal to".

Post by clixgamer »

Ok I see what I was doing wrong there. But after applying what you suggested, query comes back with all the record in the table. It doesn't seem to be omitting the "Completed" projects.
OpenOffice 4.0.0
Windows 7
F3K Total
Volunteer
Posts: 1048
Joined: Fri Dec 16, 2011 8:20 pm

Re: Query command for "not equal to".

Post by F3K Total »

Hi,
just an idea:
If "Completed" is a boolean column then try

Code: Select all

... where "Completed" = false
R
  • MMove 1.0.6
  • Extension for easy, exact positioning of shapes, pictures, controls, frames ...
  • my current system
  • Windows 11 AOO, LO | Linux Mint AOO, LO
Post Reply