在日期排序上完全丢失了 [英] Totally lost on Date Sort
本文介绍了在日期排序上完全丢失了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
之前曾在其他地方问过,但我想我必须重新解释这个问题。
使用MS Access,最好的方法是什么?如果我要列出所有
说,请处理日期;生日/生日在日期字段中?
非常感谢,因为我完全失去了这个。
Hi
Have asked before elsewhere but think I will have to rephrase the question.
Using MS Access, what''s the best way of tackling dates if I want to list all
say; birthdays/birthdates in a date field?
Many thanks as I''m totally lost on this.
推荐答案
艾伦:
我不确定你在问什么。你能给我们一个例子来说明你想要完成什么吗?
谢谢,
Jana >
Alan:
I''m not sure what you''re asking. Can you give us an example of what
you''re trying to accomplish?
Thanks,
Jana
是的,尝试在日期排序上稍微扩展一下,这就是我要做的事情。
尝试为包含的慈善机构创建一个小型数据库;姓名,
地址,笔记和出生日期以及其他一些细节。
我的女经理要我创建dbase,MS Access,以便我可以报告并打印出特定月份所有出生日期的清单 - 比如说12月,然后是1月份的b $ b等等。
这样我们就可以个性化并祝愿每月的读者生日快乐。
非常感谢您的帮助。
Al
Yes, trying to expand a little on Date sort, here''s what I ''m trying to do.
Trying to create a small database for a charity that contains; names,
addresses, notes and Date of Birth plus a few other details.
My manageress has asked me to create the dbase, MS Access, so that I can
report and print out a list of all birth dates in a particular month - say
for December, then Jan and so on.
This is so that we can personalise and wish the readers of a Monthly
Newsletter happy birthday.
Many thanks for any help.
Al
您可能想要创建一个查询,以选择
当月的生日。要简单列出所有生日,请使用:
SELECT tblPeople.Birthday,tblPeople.Lname FROM tblPeople ORDER BY
tblPeople.Birthday
>
要列出当月的所有生日,请使用:
SELECT DatePart(" m",[Birthday])AS BDAYMONTH,tblPeople.Lname FROM
tblPeople WHERE DatePart(" m",[Birthday])= DatePart(" m",Date())
You would want to create a query that selects the birthdays for the
current month. To simply list all birthdays, use:
SELECT tblPeople.Birthday, tblPeople.Lname FROM tblPeople ORDER BY
tblPeople.Birthday
To list all birthdays for the current month, use:
SELECT DatePart("m", [Birthday]) AS BDAYMONTH, tblPeople.Lname FROM
tblPeople WHERE DatePart("m", [Birthday])=DatePart("m", Date())
这篇关于在日期排序上完全丢失了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文