在新的一年重置号码 [英] reset number on new year
问题描述
我有以下设置给我响应号码R05-001
我希望它在新的一年重置为R06-001
ResponseNo:R &安培;正确(格式(日期(),yyyy),2)& " - " &
格式([PONum]," 000")
这是查询中的表达式
任何帮助都是赞赏的
肯
I have the following set up to give me aresponse number R05-001
I would like it to reset to R06-001 at new year
ResponseNo: "R" & Right(Format(Date(),"yyyy"),2) & "-" &
Format([PONum],"000")
This is an expression in a query
any help is apprecieated
Ken
推荐答案
" Kd" <柯****** @ yahoo.com>在消息中写道
news:11 ********************** @ o13g2000cwo.googlegr oups.com ...
"Kd" <ke******@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
我有以下设置给我响应号码R05-001
我希望它在新的一年重置为R06-001
ResponseNo:R &安培;正确(格式(日期(),yyyy),2)& " - " &
格式([PONum]," 000")
这是查询中的表达
任何帮助都是赞赏
Ken
I have the following set up to give me aresponse number R05-001
I would like it to reset to R06-001 at new year
ResponseNo: "R" & Right(Format(Date(),"yyyy"),2) & "-" &
Format([PONum],"000")
This is an expression in a query
any help is apprecieated
Ken
肯,
应该按原样完成工作。 "日期()"将返回当前日期,因此它将在新的一年自动切换。
格式为4位数年似乎有点奇怪然后只采取正确的2
位数,但它应该可以工作。
-
兰迪哈里斯
技术在promail dot com
我很确定我知道我能记住的一切。
Ken,
That should do the job as is. "Date()" will return the current date, so it
should switch automatically at new year.
It seems a bit odd to Format for a 4 digit year then take only the right 2
digits, but it should work.
--
Randy Harris
tech at promail dot com
I''m pretty sure I know everything that I can remember.
intead of Right(格式(日期( ),yyyy),2)
我应该使用datepart(yy)
intead of Right(Format(Date(),"yyyy"),2)
should i go with datepart(yy)
Kd写道:
我有以下设置给我响应号码R05-001
我希望它在新的一年重置为R06-001
ResponseNo:R ; &安培;正确(格式(日期(),yyyy),2)& " - " &
格式([PONum]," 000")
这是查询中的表达
任何帮助都是赞赏
Ken
I have the following set up to give me aresponse number R05-001
I would like it to reset to R06-001 at new year
ResponseNo: "R" & Right(Format(Date(),"yyyy"),2) & "-" &
Format([PONum],"000")
This is an expression in a query
any help is apprecieated
Ken
如何生成PONum?你现在拥有的东西会自动改变前缀上的
年份,但是如果你使用的是自动编号,那么这些数字将不再重新开始,以便再次开始。 PONum。
-
我没有查看电子邮件帐户附上
到此消息。发送给...
在Hunter dot com的RBrandt
How is PONum generated? What you have now will automtically change with the
year on the prefix, but the numbers will not go back over to start at one again
if you are using an AutoNumber for the PONum.
--
I don''t check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
这篇关于在新的一年重置号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!