467,887 Members | 1,568 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,887 developers. It's quick & easy.

How Can i use AND?

Respected Members
I am having a table and there are 5 columns in it.
columns-- name, age, partyname, date, no
their values

aaa,22,super,05/05/2006,23
bbb,34,super,06/06/2006,98
ccc,21,dive,02/02/2006,78
ddd,21,live,04/04/2006,67
xxx,22,super,05/04/2006,28

now i want to retrieve data
when partyname=super and date >=05/04/2006 and date <= 05/05/2006

How can i write Query for that please help me.
Oct 5 '06 #1
  • viewed: 963
Share:
2 Replies
100+
Try this

SELECT YourTableName.Name, YourTableName.Age, YourTableName.PartyName, YourTableName.MyDate, YourTableName.[No]
FROM YourTableName
WHERE (((YourTableName.PartyName)="Super") AND ((YourTableName.MyDate) Between #4/5/2006# And #5/5/2006#));

Don't forget to change the table name. Don't use Date as a field name, Date is a reserved word in Access.
Oct 5 '06 #2
Thank You Very Much Sir
Oct 7 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by
reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.