I have an Azure SQL Server database (12.0.2000.8), and an Access 365 front-end.
I am using VBA code to insert data into a table. The problem occurs on the LastUpdatedDate field which is defined as DateTime in the SQL Server table.
It fails on this line of the VBA code to update the table:
where the rst is an ADODB.Recordset.
It returns this error:
[Microsoft][ODBC Driver 17 for SQL Server]Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding.
I have tried all different date formats without success.
Does anybody have any thoughts on resolving this
TIA
Bodders
I am using VBA code to insert data into a table. The problem occurs on the LastUpdatedDate field which is defined as DateTime in the SQL Server table.
It fails on this line of the VBA code to update the table:
Code:
rst !LastUpdatedDate = Format(Now, "yyyy-mm-dd hh:mm:ss.000")
where the rst is an ADODB.Recordset.
It returns this error:
[Microsoft][ODBC Driver 17 for SQL Server]Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding.
I have tried all different date formats without success.
Does anybody have any thoughts on resolving this
TIA
Bodders