Selecting Records base on current month

N

nancy

I have a report that select info base off of a query.
I would like to have the report show infomation that is from a selected
month and year.

I have a simple check in system for volunteers. The date is automatically
enter into a column called wlDate. The date is listed as mm/dd/yyyy

How Do I do this.
 
B

Brad

Hi Nancy,

You could create another field in your query called MonthDate and format it
to only show the Month and the Date. Then you could filter the data set in
the query, or you could add the field as hidden to your report and filter it
there.

Brad
 
N

nancy

How do I format the field to show the month?

Brad said:
Hi Nancy,

You could create another field in your query called MonthDate and format it
to only show the Month and the Date. Then you could filter the data set in
the query, or you could add the field as hidden to your report and filter it
there.

Brad
 
B

Brad

Format([YourDateFieldHere],"mm-yy")

Search Format Property or Format date in MS Access Help Answer Wizard and
look for Format Property - Date/Time Data Type.

Brad
 
D

Douglas J. Steele

Another alternative would be to use the following criteria:

BETWEEN DateSerial(Year(Date), Month(Date), 1) AND DateSerial(Year(Date),
Month(Date) + 1, 0)
 
N

nancy

Thank you for your help. I have converted the date to just a month

Then I created a form with a combo box listing the months of the year.

I have created a button where it will open up a report based on the month
chosen from the combo box

I have a query that pulls information from three tables. two of the table
has a place for a date to be entered. I have converted the date to the form
you gave me.


I created a macro that is supposed to select the information from the query
based on the selection from the combobox.

The where condition is [WlWD] Or [shd]=[Forms]![Form1]![Combo6]

It is pulling up all the information. Not just from the month selected.




Brad said:
Format([YourDateFieldHere],"mm-yy")

Search Format Property or Format date in MS Access Help Answer Wizard and
look for Format Property - Date/Time Data Type.

Brad

nancy said:
How do I format the field to show the month?
 

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