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

    error 3146

    I have a data field "LastChange" type is "SmallDateTime" in a SQL Database table.
    In Access Form, I set a textbox Control Source to this field, and Format set to "General Date"


    When debug my coding, I see its value is "2023-01-19 10:23:49 AM". I think it is correct & OK.
    Then I run Me.Refresh, but I get error 3146, the message is below:
    Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding. (#0)
    What wrong is that?
    Thanks

  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
    This type of error is usually caused by incompatibilities between the SQL Server data types, the ODBC drivers and Access. Change the data type to DateTime and probably the error will go away.

    You can do some more searching, but here are some relevant links:

    https://nolongerset.com/sql-server-d...lds-ms-access/
    https://stackoverflow.com/questions/...-smalldatetime
    https://www.tektutorialshub.com/sql-...r%20new%20work.

    To get more relevant answers you would need to provide some more details such as SQL driver used, version of SQL server, etc.

    Cheers,
    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 Gicu

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

Similar Threads

  1. Replies: 5
    Last Post: 07-07-2015, 01:35 PM
  2. Replies: 12
    Last Post: 04-17-2015, 11:41 AM
  3. "Run Time Error 3146, ODBC call failed" :(
    By selvakumar.arc in forum Access
    Replies: 0
    Last Post: 12-04-2014, 01:57 PM
  4. Error 3146 in Access 2007, not in Access 2010
    By opopanax666 in forum Programming
    Replies: 3
    Last Post: 10-15-2013, 09:29 AM
  5. ODBC Error 3146 on rs.update
    By sharon.chapman7 in forum Programming
    Replies: 6
    Last Post: 03-06-2012, 08:45 AM

Tags for this Thread

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