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
VFP 9.0 and Installshield
sql (2005) query - code to combine multiple columns into one
How to make a windows application modal?
Excel chart
Multiple UpDate & Select
vs2008 sp1
Miccrosoft, Excel, 2007 - How To Copy And Paste Conditional Formatting?
How to create Access Check Box Pick List Form then populate report based on selection
Membership to multiple domains on Win XP Pro
Why won't "WMIC OS Where Primary=True Call Reboot" not force reboot when dialog box is open?