I want to diplay the month in "mmm" format with the input of number.
E.g. If I input 1, it'll display Jan, if I input 2, it'll display
Feb. If I write: format (input_month, "mmm"), it'll always display
Jan, no matter I input 1, 2, 3, ....
Can anyone help? 2 1767
irene wrote:
I want to diplay the month in "mmm" format with the input of number.
E.g. If I input 1, it'll display Jan, if I input 2, it'll display
Feb. If I write: format (input_month, "mmm"), it'll always display
Jan, no matter I input 1, 2, 3, ....
Can anyone help?
You could use a lookup table or you could create a case statement or you
could use dateserial as possible solutions. In the afterupdate event,
using dateserial, you could do something like
If NZ(Me.MonthEntry,0) 0 and NZ(Me.MonthEntry,0) <= 12 then
Me.DisplayMonth = Format(dateserial(2008,Me.MonthEntry,1),"mmm")
Endif
Surf http://www.youtube.com/watch?v=Z_BNXW1v0uk
On Feb 5, 4:54*pm, irene <irene.lf...@gmail.comwrote:
I want to diplay the month in "mmm" format with the input of number.
E.g. If I input 1, it'll display Jan, if I input 2, it'll display
Feb. *If I write: format (input_month, "mmm"), it'll always display
Jan, no matter I input 1, 2, 3, ....
Can anyone help?
Try the monthname function, e.g.
monthname (input_month) to get the full name of the month
or
monthname (input_month, true) to get the three letter abbreviation. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Laurence Neville |
last post by:
This is regarding a change in the Short Date format under Hebrew Regional
Settings, that has caused huge problems in our ASP web application. The
change appears to have been introduced sometime...
|
by: martini |
last post by:
Need help:
I am trying to call a DB2 stored procedure that requires parameters: 4x int,
date, varchar, int. I use VB6 & oledb.
I'm using statements:
cmd.CommandText = "{call db2admin.proc(1, 0,...
|
by: David B |
last post by:
I have 2 querys with the following in the date criteria
Between DateAdd("m",-6,(!!)) And
(!!)
Between DateAdd("m",-24,(!!)) And
DateAdd("m",-6,(!!))
Problem is they both look at the same...
|
by: Dustin Wilson |
last post by:
I have a problem with the following line of code.
rstOutput! = FormatDateTime("January 1, 2004", vbLongDate)
When I run this on my computer at home it runs without problem but when I
run it at...
|
by: Lyn |
last post by:
Hi,
I am developing a project in which I am checking for records with
overlapping start/end dates. Record dates must not overlap date of birth,
date of death, be in the future, and must not...
|
by: Julie Wardlow |
last post by:
Help!
I am calculating a future date using the DateAdd function in a query (the
calculation also involves an IIf statement), and have managed to get this
formula to produce the required result....
|
by: TN Bella |
last post by:
Hello,
I was looking through the older posts for a solution to this problem,
but I am still confused on how to fix my problem. There are two dates on
my form, one (txtInvDate) is entered by the...
|
by: James P. |
last post by:
Hello there,
In my asp.net page using VB, I have a date text field in mm/dd/yyyy
format. When a date is entered, I'd like to validate it to make sure
the date is greater than or equal to the...
|
by: Jim Armstrong |
last post by:
Hi all -
This problem has been driving me crazy, and I'm hoping the answer is
something stupid I am neglecting to see....
The procedure posted below is part of an Access/SQL database I have...
|
by: creative1 |
last post by:
Hello everyone.
I am experiencing a strange problem that I can't fix on my own. I think I need expert's suggestions for this.
The problem is:
I want to print account statement (or any other...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |