Fred:
Here it is:
SELECT [RBWA Enrolment Table].[ID Number], [RBWA Enrolment Table].FirstName,
[RBWA Enrolment Table].MiddleName, [RBWA Enrolment Table].LastName, [RBWA
Enrolment Table].[RBWA Enrolment Date]
FROM [RBWA Enrolment Table];
I did not add on any of your info as it would only give me an error message.
I added the following to it through "Build"
Where Format([RBWA Expiry Date],"mm/yyyy") =
Format(DateAdd("m",1,Date()),"mm/yyyy")
Mike
:
On Sun, 9 Sep 2007 08:36:01 -0700, SilverTip 147 wrote:
Thanks Fred for replying!!
However, it's not working yet!
This is what i typed:
[RBWA Enrolment Table] Where Format([RBWA Expiry Date],"mm/yyyy") =
Format(DateAdd("m",1,Date()),"mm/yyyy")
This is the error message I get:
"The expression you entered contains invalid syntax. You have ented an
operand without an operator."
Any suggestions?
Thanks again!
:
On Sat, 8 Sep 2007 05:42:01 -0700, SilverTip 147 wrote:
I'm using Access 2003.
I am a new user who si trying to build an expression for this query:
Whose membership expires next month??
So far I have: [RBWA Enrolment Table]![RBWA Expiry Date]
How do I finish this expression?
I am using the short form for dates?
Thank you for your help?
Select [RBWA Enrolment Table].* from [RBWA Enrolment Table]
Where Format([RBWA Expiry Date],"mm/yyyy") =
Format(DateAdd("m",1,Date()),"mm/yyyy")
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
You have posted an incomplete statement.
In Query Design View, click on View + SQL View,
Please copy and paste into a reply message your EXACT complete query
SQL.
Did you move your semi-colon (after FROM [RBWA Enrolment Table]) to
the end of the Where clause?
Is there a field named [RBWA Expiry Date] in the [RBWA Enrolment
Table]?
Are you sure you have spelled the [RBWA Expiry Date] field name
correctly, with the appropriate spaces in the name? (Not really a good
idea to have field or table names that include spaces.)
Are you aware that you have miss-spelled the word "Enrollment"?
It doesn't matter to Access as long as it's always spelled the same
way.
The below SQL works for me.
SELECT [RBWA Enrolment Table].[ID Number], [RBWA Enrolment
Table].FirstName, [RBWA Enrolment Table].MiddleName, [RBWA Enrolment
Table].LastName, [RBWA Enrolment Table].[RBWA Enrolment Date]
FROM [RBWA Enrolment Table]
WHERE (((Format([RBWA Expiry Date],"mm/yyyy")) =
Format(DateAdd("m",1,Date()),"mm/yyyy")));
Note: Access throws in extra un-needed parenthesis in the Where
clause. Don't worry about them.