Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query using boolean and greater than >

Status
Not open for further replies.

antm2209

Technical User
Jun 19, 2008
4
GB
Hi,

I am trying to create a query that will display records where the boolean is set to no and when daysrent is greater than 1 when i open the query up

The boolean name is td_Returned

Daysrent: DateDiff("d",[tm_dateout],Now())

Is there something i need to put into one of the criteria to just display boolean = no and everything over 1.

something like this maybe - if (td_Returned=No) AND (daysrent >1) I know thats not right just to show you what i am trying to do. I have included a screen shot if that helps


Any help would be brilliant, Thanks
 
Code:
select ....
from tablename
where (td_Returned=No) AND (DateDiff("d",[tm_dateout],Now()) >1)
 
If you show the SQL pane rather than the Query Designer, that would be more helpful.

You probably want a WHERE clause like
Code:
WHERE td_Returned = FALSE AND daysrent > 1
 
Thank you so much for your time all sorted :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top