Microsoft
Software
Hardware
Network
Question : Error: Scaling of decimal value resulted in data truncation
I'm taking a Excel cell value and trying to save it to an Access field. I keep getting the error: Scaling of decimal value resulted in data truncation.
The Access field (PF) data type is Numeric, Field size = "decimal", Percision = 28, Scale 6
The value in the Excel cell ("pf") is: 0.748284042319986
I've been attempting to follow existing VBA that I got from another related application doing the same thing:
!pf = Right(Range("pf"), Len(Range("pf")) - 1)
Any suggestions? Thanks as always!!!
Answer : Error: Scaling of decimal value resulted in data truncation
Dim lngPF As Variant
lngPF=xl.range("pf").Value
!pf = Left(lngPF, len(lngPF)-1)
Random Solutions
Error 84ff System Event Log Full
Aligning an ASP.NET Menu Control
OWA internal connection issue, Exchange 2007 SBS 2008
VBA code to clean all cells in all worksheets from non-printable characters
SQL to strip characters from imported csv phone list
Changing the source for a query
HOW to map drives that STAY mapped after user logs off?
Crystal Reports newbie - how to increase text size
How to read a date column in excel using C#
The Certification Authority Service has not been started.