473,399 Members | 3,656 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Choose Month & Year when giving report criteria

Hello,

I generate invoices for my customers evry month. I want to keep a form which
will allow the user to select the Month and Year through a combo and thus
generate reports based on the month selected. Also, please let me know how
I can keep a copy of invoices which I generate for future reference.
Awaiting eagerly for your replies

--
'With Thanks'
Burg
Dec 24 '05 #1
6 4806
How is the date stored in your table? If your date field is
mm/dd/yyyy, then you can create a query that calculates the month and
year: Month(datefield) & "/" & year(datefield). Or else you can
create a field month and another year in the table then filter on that
accordingly.

Dec 24 '05 #2
mm/dd/yyyy is a format. It determines how a date is displayed. It has
nothing to do with how a date is stored in a field, nor in memory.
Dates are stored as eight bytes which are interpreted in a way
analogous to the way Doubles are interpreted, with the integer values
representing days since Larry Linson's date of birth (Dec 30, 1899) and
fractional amounts representing hours, minutes and seconds.
Month(Date) and Year(Date) are not dependent on date format; they
should "work" on any date.

Dec 24 '05 #3

"Lyle Fairfield" <ly***********@aim.com> wrote in message
news:11********************@g47g2000cwa.googlegrou ps.com...
mm/dd/yyyy is a format. It determines how a date is displayed. It has
nothing to do with how a date is stored in a field, nor in memory.
Dates are stored as eight bytes which are interpreted in a way
analogous to the way Doubles are interpreted, with the integer values
representing days since Larry Linson's date of birth (Dec 30, 1899) and

ROFL!

fractional amounts representing hours, minutes and seconds.
Month(Date) and Year(Date) are not dependent on date format; they
should "work" on any date.


Dec 25 '05 #4
That was my real point. If he is storing a date field or if he were
doing two fields Month, Year.

Dec 25 '05 #5

Lyle Fairfield wrote:
mm/dd/yyyy is a format. It determines how a date is displayed. It has
nothing to do with how a date is stored in a field, nor in memory.
Dates are stored as eight bytes which are interpreted in a way
analogous to the way Doubles are interpreted, with the integer values
representing days since Larry Linson's date of birth (Dec 30, 1899) and
fractional amounts representing hours, minutes and seconds.
Month(Date) and Year(Date) are not dependent on date format; they
should "work" on any date.


You are correct. The format is not what I really meant to refer to.
To answer the orignal question, I was asking if there was a date field
in the table. If so, write a query to calculate the month and year.
Of course, you could also calculate the last day of the month of any
field. To me, that makes it cleaner because you only have one field to
contend with. Furthermore, I'd store that calculation of that field in
the table so I may refer to it at any time.

The orignal question does not indicate if there is a month field and a
year field or if there is just a date field to calculate the month and
year of said field.

Dec 25 '05 #6
"Lyle Fairfield" <ly***********@aim.com> wrote
mm/dd/yyyy is a format. It determines how a date is displayed. It has
nothing to do with how a date is stored in a field, nor in memory.
Dates are stored as eight bytes which are interpreted in a way
analogous to the way Doubles are interpreted, with the integer values
representing days since Larry Linson's date of birth (Dec 30, 1899) and
fractional amounts representing hours, minutes and seconds.
Month(Date) and Year(Date) are not dependent on date format; they
should "work" on any date.


Whippersnapper! Now you've let out the secret of why they chose that as the
base date.

<GRIN>
Dec 26 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mary | last post by:
I am trying to develop a query which will determine the average costs using a rolling average of the past 12 months of data. In other words, if I entered the Ship Month of January and the Ship...
2
by: Catherine | last post by:
I am trying to create a report that will give me q total count by month to date, and then another by year to date. Example: Discharges By Type Month To Date Year To Date...
2
by: Rupert Street | last post by:
I would like to set up a command button on a timesheet form to preview the jobs a contractor has worked on for the month. I would like if possible when the button is clicked for it to ask for the...
6
by: Tony Miller | last post by:
All I have an aggregate query using the function Month & Year on a datereceived field ie: TheYear: Year() TheMonth: Month() These are the group by fields to give me a Count on another field by...
2
by: Burghew | last post by:
Thanks for the previous replies..... What I need is to generate invoices for customers whom we rent out equipment. I will be choosing the date and year say for December 2005 print the invoices...
18
by: PC Datasheet | last post by:
An Access user saw my name in a newsgroup and sent me a request for help on a project. As part of the project, a list of the dates in a month was needed. For anyone needing a list of dates in a...
0
by: YellowFin Announcements | last post by:
Introduction Usability and relevance have been identified as the major factors preventing mass adoption of Business Intelligence applications. What we have today are traditional BI tools that...
22
by: Stan | last post by:
I am working with Access 2003 on a computer running XP. I am new at using Access. I have a Db with a date field stored as mm/dd/yyyy. I need a Query that will prompt for the month, ie. 6 for...
2
by: Paul H | last post by:
I have a db that stores people and their birth dates. On any given day, I need to know who has a 40th birthday one month from now. I will only be running the query on week days but of course some...
2
by: DavidOwens | last post by:
SELECT DISTINCTROW Format(PERIOD.START_DT,"mmmm yyyy") AS MonthYear, SALES.PERIOD_ID, Sum(SALES.SALES) AS SumOfSALES, Sum(SALES.SALES_UNITS) AS SumOfSALES_UNITS, Sum(SALES.SALES_VALUE) AS...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.