数据库存在怎么找不到?

mfm80629 2001-07-31 01:17:02
"select * from 表1 where 日期字段=#" & txtyear.text & "-" & txtmonth.text & "-" & txtday.text & "#"

"select * from 表1 where 日期字段=#" & formatdatetime(txtyear.text & "-" & txtmonth.text & "-" & txtday.text,0) & "#"

都试过了,日期字段是‘日期/时间’型中的‘中日期’,我用的是ACCESS97





...全文
77 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ExitWindows 2001-08-01
  • 打赏
  • 举报
回复
up
ExitWindows 2001-07-31
  • 打赏
  • 举报
回复
up
ExitWindows 2001-07-31
  • 打赏
  • 举报
回复
up
ltpao 2001-07-31
  • 打赏
  • 举报
回复
txtyear.text="2001",否则会出错
mfm80629 2001-07-31
  • 打赏
  • 举报
回复
txtyear.text="01"
txtmonth.text="07"
txtday.text="30"

1,216

社区成员

发帖
与我相关
我的任务
社区描述
VB 数据库(包含打印,安装,报表)
社区管理员
  • 数据库(包含打印,安装,报表)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧