Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 21st, 2003, 07:12 PM
newbiepr newbiepr is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 14 newbiepr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post trying to make report

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.

Reply With Quote
  #2  
Old November 23rd, 2003, 04:50 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
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-

Reply With Quote
  #3  
Old November 23rd, 2003, 09:35 PM
newbiepr newbiepr is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 14 newbiepr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #4  
Old November 23rd, 2003, 09:57 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 12
SELECT Table1.tabledate, Month([tabledate]) AS QueryMonth
FROM Table1
WHERE (((Month([tabledate]))=[Form Object Month Criteria as a number]));

S-

Reply With Quote
  #5  
Old December 11th, 2003, 08:13 PM
newbiepr newbiepr is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 14 newbiepr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks for the help. it worked

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > trying to make report


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway