Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<code> private sub save_click() SQL = SQL + "DATE_OF_BIRTH=('" & TO_CHAR(TO_DATE(DTPicker1.Value, "DD-MM-YYYY")) & "')," end sub </code>
它显示错误,例如:未定义子或函数。请帮忙
尝试这样的事情:
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 做的