473,405 Members | 2,404 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,405 software developers and data experts.

Display previous month on report

I simply wish to place the name of the last month (prior to the current
month) on a report.

I've tried using =Month(now())-1, which returns the numerical value as
10, but I cannot get it to display as October.

Any ideas?

Nov 6 '06 #1
3 19311
try

=Choose(Month(Date())-1), "January", "February", "March", "April", "May",
"June", "July", "August", "September", "October", "November", "December")

the above goes all on one line in the textbox control's ControlSource
property, of course. suggest you read up on the Choose() function in Access
Help, so you'll understand how it works.

hth
<ry*****@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
I simply wish to place the name of the last month (prior to the current
month) on a report.

I've tried using =Month(now())-1, which returns the numerical value as
10, but I cannot get it to display as October.

Any ideas?

Nov 6 '06 #2
Cheers - one minute before reading your reply, I found this to work:

=Format$(DateAdd("m",-1,Now()),"mmmm")

Not sure which version is more eloquent, however it's nice to have too
many options than not enough!

Thanks,
Ranga
tina wrote:
try

=Choose(Month(Date())-1), "January", "February", "March", "April", "May",
"June", "July", "August", "September", "October", "November", "December")

the above goes all on one line in the textbox control's ControlSource
property, of course. suggest you read up on the Choose() function in Access
Help, so you'll understand how it works.

hth
<ry*****@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
I simply wish to place the name of the last month (prior to the current
month) on a report.

I've tried using =Month(now())-1, which returns the numerical value as
10, but I cannot get it to display as October.

Any ideas?
Nov 6 '06 #3
yep, that'll do it. very good :)
<ry*****@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
Cheers - one minute before reading your reply, I found this to work:

=Format$(DateAdd("m",-1,Now()),"mmmm")

Not sure which version is more eloquent, however it's nice to have too
many options than not enough!

Thanks,
Ranga
tina wrote:
try

=Choose(Month(Date())-1), "January", "February", "March", "April",
"May",
"June", "July", "August", "September", "October", "November",
"December")

the above goes all on one line in the textbox control's ControlSource
property, of course. suggest you read up on the Choose() function in
Access
Help, so you'll understand how it works.

hth
<ry*****@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
I simply wish to place the name of the last month (prior to the
current
month) on a report.
>
I've tried using =Month(now())-1, which returns the numerical value as
10, but I cannot get it to display as October.
>
Any ideas?
>

Nov 6 '06 #4

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

Similar topics

9
by: eddie wang | last post by:
How to convert a month to previous month in a very easy way? For example, I have AUGUST, but I want JULY to return. Thanks. *** Sent via Developersdex http://www.developersdex.com *** Don't...
1
by: Finlay | last post by:
Hi Group I am designing a report that should show a meter reading for each month and the previous meter reading for the previous month. The months are text stored in a field tMonth. The...
1
by: Wayfarer | last post by:
I've built a report using a aggregate query that is grouped by Month + Year, Program and Name. When I feed the date ranges as query parameters, it will very properly print out a report that shows...
2
by: TB | last post by:
HI, is there a formula(function) you could use to the display the previous month's name in a report. i know there is a function(formula) that returns the previous month's value (ie 4 for the...
10
by: Massimo30 | last post by:
Looking for answers and have done a search in books and websites and still can't find the answer: I am setting up a Market Trend DB on housing figures. I have the following fields in my table: My...
10
by: samhale | last post by:
Hopefully an easy one. Can someone please supply me with the code for displaying the previous month? I do not want just -3 from December for October. It needs to work each month without modifying....
0
by: marlberg | last post by:
Platform: Windows2000, WindowsXP, Windows Vista, etc Language: C#, ASP.NET Pre-compiled Libraries: Enterprise Library 3.0 full I have a requirement to implement in and display in C# and...
6
by: zandiT | last post by:
Hello i have a query with two date fields General.Date and Finance.Date. i would like the date in Finance.Date to be previous month of General.Date. So for example if General Date is in the month...
5
by: Vajid Idrees | last post by:
Hi, I am creating a report which needs to calculate the %change from the previous month. I have tried using a nested query which tries to take the value from the previous month and then the current...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.