本文介绍了每个星期的一周的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 嗨 我有一份报告,其中列出了各个日期的工作时间。什么可以是 方式为每个条目分配 条目的日期所属的月份? 谢谢 问候 解决方案 这里我使用10/1/2004作为开始日期。我减去 开始/结束之间的天数,除以7得到一周,然后加1来得到一周所以 表示周数从1开始,而不是0. ''周的日期与开始日相同 ? dateiff(d,#10/1/2004#,#10/1/2004#+ 7)\7 + 1 1 ''周7天外出 ? dateiff(d,#10/1/2004#,#10/1/2004#+ 7)\7 + 1 2 创建一个表来保存所有不同的时间段 - 在这种情况下是几周。 用正确的周数标记每一行并加入在 的新表中查询。 HiI have a report which lists staff hours for various dates. What could be away to assign to each entry the week of the month that the date for theentry belongs to?ThanksRegards 解决方案Here I use 10/1/2004 as the start date. I subtract the days betweenstart/end, divide by 7 to get the week, and add 1 to get the week sothat the number of the week starts at 1, not 0.''week where date is same as start day? datediff("d",#10/1/2004#,#10/1/2004#+7)\7 + 11''week 7 days out? datediff("d",#10/1/2004#,#10/1/2004#+7)\7 + 12Create a table to hold all your distinct time periods - in this case weeks.Label each row with the correct week number and join to the new table inyour queries. 这篇关于每个星期的一周的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-14 16:19