|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm trying to make a monthly report. I have a form with a combo box where the user selects the month that he/she wants in the report and after clicking the ok button the report should show all of the information the table has with that month no matter what day (in the table the date is written: mm/dd/yyyy)
I have to do the same thing for a annual report and for a customer report hope you can help ![]() Last edited by newbiepr : November 22nd, 2003 at 09:16 AM. |
|
#2
|
|||
|
|||
|
I will assume your question is "How do I do this?"
In your query create an expression of converts you record date to a month for comparison SelectedMonth:Month(RecordDate) Don't forget to look at year on you monthly report or you will get lastyears data as well SelectYear:Year(RecordDate) S- |
|
#3
|
|||
|
|||
|
can you give me an example cause I can't seem to get it right.
in the table I have a column called "date" wich stores the date like "dd/mm/yyy" in the form that the user uses to select the month I have a combobox wich has the 12 months after clicking the ok btn a report shows and it is supposed to show all of the info from that month(name,add,date,...) I did the query but the report shows blank I appreciate your help, thanks |
|
#4
|
|||
|
|||
|
SELECT Table1.tabledate, Month([tabledate]) AS QueryMonth
FROM Table1 WHERE (((Month([tabledate]))=[Form Object Month Criteria as a number])); S- |
|
#5
|
|||
|
|||
|
thanks for the help. it worked
![]() |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft Access Help > trying to make report |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|