0uery criteria not working

J

JG

I have a query with the following synatx:

SELECT qryYahrzeitList.YahrzeitDateText, qryYahrzeitList.YahrzeitText,
Format([Date],"mm/dd/yyyy") AS NextYahrzeit, qryYahrzeitList.PARSHA,
Month([NextYahrzeit]) AS Expr1
FROM qryYahrzeitList;

I'm explicitly formatting [YahrzeitText] as a date. I'm then creating
[Expr1] as just having the month value. If I put in a criteria of any number
in Expr1, the query prompt me for [NextYahrzeit]. If I run with no criteria
I get my whole table with Expr1 containing a number 1-12 (correctly). How do
I get Expr1 to recognize a critera?

Thanks.
 
Joined
Feb 9, 2012
Messages
25
Reaction score
0
Is [Date] an actual field?
If so you shouldn't use it as a fieldname because it is a reserved word and can cause problems so I advise you to change it and then let me know what happens.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top