0
<code>
private sub save_click()
SQL = SQL + "DATE_OF_BIRTH=('" & TO_CHAR(TO_DATE(DTPicker1.Value, "DD-MM-YYYY")) & "'),"
end sub
</code>

它显示错误,例如:未定义子或函数。请帮忙

4

1 回答 1

0

尝试这样的事情:

SQL = SQL & "DATE_OF_BIRTH between " & Format(DTPicker1(count).value, "DD-MM-YYYY") & " and " & Format(DateAdd("d", 1, DTPicker1(count).value), "DD-MM-YYYY"))

至少我是这样为 MSSQL 和 Postgresql 做的

于 2013-01-09T15:49:27.047 回答