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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BETWEEN 1

Status
Not open for further replies.

hitechboy78737

Programmer
Nov 8, 2004
82
US
Isn't there a "BETWEEN" statement in Access?

ie. fldDate BETWEEN xdate AND yDate

What is the proper syntax?

Thanks!
Kevin Howell
 

How's this...

Oracle SQL>
select count(alcohol_24hr) "Number drinking 5-10 units"
from VICTIM
where alcohol_24hr between 5 and 10;


Access
using aggregate function in a field
field number drinking 5-10 units:count(alcohol_24hr) alcohol_24hr
sort
show X
criteria between 5 and 10
or

SELECT Count([alcohol_24hr]) AS [number drinking 5-10 units]
FROM victim
WHERE ((victim.alcohol_24hr Between 5 And 10))
WITH OWNERACCESS OPTION;


Hey I can't take credit for this.. Found on Web.

Hope this helps..

Good Luck...


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top