Solved

Format(Date)

Posted on 1998-10-02
2
135 Views
Last Modified: 2010-04-30
variable = Format(Date, mmm). for example gives you Sep
how do I receive the previous month Aug. I have tried:
variable = Format(Date, mmm)- 1, but I get a Type Mismatch
error.
Thank You
0
Comment
Question by:robhas
2 Comments
 
LVL 4

Accepted Solution

by:
mcix earned 30 total points
Comment Utility
variable = Format$(DateAdd("M", -1, Now), "mmm")
0
 

Author Comment

by:robhas
Comment Utility
Worked Great
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Is an IP address in a Range 22 71
VBA: Add rows to listbox based on criteria 7 64
MsgBox 2 36
vb6 connector to SQL Server 2 32
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now