从Access数据库中的数字获取月份名称? [英] Get Month Name from a digit in Access Database?

查看:280
本文介绍了从Access数据库中的数字获取月份名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我发现如下:格式(日期) ,mmmm),不幸的是我没有日期,我所有的月份数字,所以功能不起作用。



有没有可以使用的选项?



谢谢

解决方案

p>您可以使用MS-Access中可用的 MonthName(Month)功能。

  MonthName 3)将返回'March'
MonthName(3,TRUE)将返回'Mar'
MonthName(7,FALSE)将返回'7月'
pre>




在Access中,MonthName函数返回一个字符串,表示给定一个数字从1到12的月份。 >

MonthName函数的语法是:

  MonthName(number,[abbrevviate ])

number是从1到12的值,代表月份。



缩写是可选的。此参数接受一个布尔值,TRUE或FALSE。如果此参数设置为TRUE,则表示月份名称被缩写。如果此参数设置为FALSE,则不会缩短月份名称。



希望!这将有助于您。


I am trying to figure out how to get month name from a month digit in access database.

I found this: Format(Date, "mmmm"), unfortunately i don't have the date, all i have are the months numbers so that function won't work.

is there an alternative i could use?

Thank you

解决方案

You can use the MonthName(Month) function available in MS-Access.

MonthName(3)            would return 'March'
MonthName(3, TRUE)      would return 'Mar'
MonthName(7, FALSE)     would return 'July'


In Access, the MonthName function returns a string representing the month given a number from 1 to 12.

The syntax for the MonthName function is:

MonthName ( number, [abbreviate] )

number is a value from 1 to 12, representing the month.

abbreviate is optional. This parameter accepts a boolean value, either TRUE or FALSE. If this parameter is set to TRUE, it means that the month name is abbreviated. If this parameter is set to FALSE, the month name is not abbreviated.

Hope! this will help you.

这篇关于从Access数据库中的数字获取月份名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆