M
Mary
I am working on a report that should return only current members.
In the CommitmentDate table, each time a member renews, their renewal date
is entered along with the enrollment period which is typically one year.
I created a query to give me the date to which the membership is valid. So
if a member renews 7/29/2009 for one year, the query returns 7/29/2010 as the
"valid to" date. Another column sorts them into "current" or "expired"
members based on the current date. The query is working and it follows:
SELECT MemberCommitmentDates.MemberLookup,
qryMemberNameLookup.NameLookupLNF, MemberCommitmentDates.CommitmentDate,
MemberCommitmentDates.CommitmentPeriodYears,
DateAdd("yyyy",[CommitmentPeriodYears],[CommitmentDate]) AS MemberValidTo,
IIf(DateValue([MemberValidTo])>Date(),"Current","Expired") AS MemberStatus
FROM qryMemberNameLookup INNER JOIN MemberCommitmentDates ON
qryMemberNameLookup.ID = memberCommitmentDates.MemberLookup;
The problem I am having is with the report. I can get the report to give me
all members and their status, but when I try to filter by Member Status I get
a "Data Type Mismatch". I have tried various forms of filter statements
based on things I have read here, but I can only be sure of this attempt:
[MemberStatus] = "current"
Any suggestions are appreciated!
In the CommitmentDate table, each time a member renews, their renewal date
is entered along with the enrollment period which is typically one year.
I created a query to give me the date to which the membership is valid. So
if a member renews 7/29/2009 for one year, the query returns 7/29/2010 as the
"valid to" date. Another column sorts them into "current" or "expired"
members based on the current date. The query is working and it follows:
SELECT MemberCommitmentDates.MemberLookup,
qryMemberNameLookup.NameLookupLNF, MemberCommitmentDates.CommitmentDate,
MemberCommitmentDates.CommitmentPeriodYears,
DateAdd("yyyy",[CommitmentPeriodYears],[CommitmentDate]) AS MemberValidTo,
IIf(DateValue([MemberValidTo])>Date(),"Current","Expired") AS MemberStatus
FROM qryMemberNameLookup INNER JOIN MemberCommitmentDates ON
qryMemberNameLookup.ID = memberCommitmentDates.MemberLookup;
The problem I am having is with the report. I can get the report to give me
all members and their status, but when I try to filter by Member Status I get
a "Data Type Mismatch". I have tried various forms of filter statements
based on things I have read here, but I can only be sure of this attempt:
[MemberStatus] = "current"
Any suggestions are appreciated!