这个SQL for Date出了什么问题? [英] What's wrong with this SQL for Date?
本文介绍了这个SQL for Date出了什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的表单有两个文本框,txtDateFrom和txtDateTo。带有标题月的宏按钮是自动用当前月份日期填写txtDateFrom和txtDateTo。我的代码读作:
My form has two text boxes, txtDateFrom and txtDateTo. A macro button with the caption Month is to automatically fill in txtDateFrom and txtDateTo with current month date. My code reads as:
展开 | 选择 | Wrap | / span> 行号
推荐答案
获取当月(05/01) / 2009 - 05/31/2009)我将代码修改为:
To get current month (05/01/2009 - 05/31/2009) I modified the code to read as:
展开 | 选择 | 换行 | 行号
这是一个双重帖子吗?如果是,你介意我删除另一个吗?如果不是请告诉我,我可以根据需要调整标题。
http://bytes.com/topic/access/answer...wrong-sql-date
Is this a double post? If it is do you mind if I remove the other one? If it isn''t please let me know so I can adjust the title as needed.
http://bytes.com/topic/access/answer...wrong-sql-date
展开 | 选择 | < span class =codeLinkonclick =WordWrap(this);> Wrap | 行号
您好
尝试添加格式函数
format(date," dd / mm / yyyy)或格式(日期,短日期)
问候
Emil
Hi
Try adding the format function
format(date, "dd/mm/yyyy") or format(date, "short date")
Regards
Emil
这篇关于这个SQL for Date出了什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文