By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,560 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,560 IT Pros & Developers. It's quick & easy.

How Can i use AND?

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


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
Share this Question
Share on Google+
2 Replies

P: 143
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

P: 3
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.