2 questions if I may:
1). In my Access 2003 database, under Tools, Start Up, Allow Full Menus is unchecked.
I have a form that opens a query. When that query opens, I would like to activate the Tools, Office Links menu. Then when the query closes, I would like the Tools menu goes away again. Can I do that?
2). Also, in another query, I have a date field called As-Of-Date which is always the last day of the month: ex: 12/31/08, 1/31/09, 2/28/09, etc.
Part of the criteria in my SQL is:
"...WHERE ((([table1].[As-of-Date])>Date()-28)..."
What I'm trying to do is always get the previous month's data. So in March, I want to see Feb's data. This works if we're in the beginning of the month, ex: March 1 will show me Feb's data. Great. But it doesn't work if we're towards the end of the month, ex: March 30 will not show me Feb's data. Not good.
How can I add the criteria to my query that says show me data for the date range of the previous month?
Thanks,
1). In my Access 2003 database, under Tools, Start Up, Allow Full Menus is unchecked.
I have a form that opens a query. When that query opens, I would like to activate the Tools, Office Links menu. Then when the query closes, I would like the Tools menu goes away again. Can I do that?
2). Also, in another query, I have a date field called As-Of-Date which is always the last day of the month: ex: 12/31/08, 1/31/09, 2/28/09, etc.
Part of the criteria in my SQL is:
"...WHERE ((([table1].[As-of-Date])>Date()-28)..."
What I'm trying to do is always get the previous month's data. So in March, I want to see Feb's data. This works if we're in the beginning of the month, ex: March 1 will show me Feb's data. Great. But it doesn't work if we're towards the end of the month, ex: March 30 will not show me Feb's data. Not good.
How can I add the criteria to my query that says show me data for the date range of the previous month?
Thanks,