格式化功能无法识别 [英] Format function not recognized

查看:72
本文介绍了格式化功能无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hallo,



我在MS中有以下表达式< g class =" gr_ gr_18 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 18 QUOT; id =" 18"> Accessquery< / g>:格式([Date];" mmm")。
$


当我运行查询时,Access会给出错误消息:表达式中未定义的函数'Format'。



我搜索的范围很广,似乎Format是MS Access中的合法函数。



有关如何解决此问题的任何建议吗?



< g class =" gr_ gr_17 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace"数据-GR-ID =" 17" id =" 17"> Phlip< / g>




解决方案

您好


Reg ards


Deepak




Hallo,

I have the following expression in a MS <g class="gr_ gr_18 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="18" id="18">Accessquery</g>: Format([Date];"mmm").

When I run the query, Access gives an error message: Undefined function 'Format' in expression.

I have searched far and wide and it seems that Format is a legal function in MS Access.

Any suggestions on how to fix this?

<g class="gr_ gr_17 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="17" id="17">Phlip</g>


解决方案

Hi Driep01,

From your description of the thread, It's looks like you have some issue with line below.

Format([Date];"mmm")

I try to check it in MS Access.

I find that there is syntax error.

You had used the ';' instead of ','.

Below is the correct way to use Format Function.

SELECT  Format('1/22/2018',"mmm") As FormattedDate;

Output:

Reference:

Format Function

Regards

Deepak


这篇关于格式化功能无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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