按月份从access中提取数据,月份从text控件获得

2025年03月17日 13:11
有3个网友回答
网友(1):

"select * from 表1 where datepart(mm, 日期) = '" & text.text & '""

"select * from 表1 where month([日期]) = '" & text.text & '""

网友(2):

"select * from 表1 where month(日期)= "& text.text

对了,你text上输入的月份含 不含年,是以什么格式输入的

网友(3):

百度 VB format函数格式化日期的用法