Results 1 to 3 of 3
  1. #1
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149

    get server datetime

    i want to get SQL database server date & time and use below coding


    Code:
    Set rst = db.OpenRecordset("select getdate() as servertime")
    but i get error: undefined function "getdate"

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    You'd have to use a pass-through query for that...
    https://support.microsoft.com/en-us/...2-6dac62532a42
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

  3. #3
    uoghk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jan 2022
    Posts
    149
    Thanks Vlad Cucinschi

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 08-15-2016, 10:29 PM
  2. Bug with Datetime in SqlServer
    By jackrabbit1962 in forum SQL Server
    Replies: 1
    Last Post: 03-17-2016, 07:53 AM
  3. Help with rounding datetime
    By Delta729 in forum Access
    Replies: 10
    Last Post: 04-03-2015, 12:13 PM
  4. Get only date from a datetime in access
    By scorpion99 in forum Queries
    Replies: 4
    Last Post: 11-30-2013, 09:43 AM
  5. Dateserial and datetime
    By webisti in forum Access
    Replies: 1
    Last Post: 06-17-2013, 11:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums