一句代码得到SQL SERVER时间的函数 Function getServerTime() As Date getServerTime = Cdate(CurrentProject.Connection.Execute("SELECT GETDATE()")(0).Value) End Function
原帖由 Grant 于 2007-8-23 15:31 发表
一句代码得到SQL SERVER时间的函数 Function getServerTime() As Date getServerTime = Cdate(CurrentProject.Connection.Execute("SELECT GETDATE()")(0).Value) End Function