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

2025-03-17 13:11:48
推荐回答(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函数格式化日期的用法