Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formula does not work
Message
From
06/07/2013 05:15:36
 
 
To
06/07/2013 03:29:36
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01577874
Message ID:
01577875
Views:
66
>I have a table(Mytable) where one of the fields(myfield) contains a
>formula like ("=SUM(N2:N"+ALLTRIM(STR(lnLastRow))+")").
>
>When I run the code below with the "=" in front of "SUM" in Myfield,
>I get an OLE error(code 0x800a03ec: Unknown COM status code)
>
>Without "=", the code works fine.
>
>.Columns[1].Value =  Mytable.myfield 
>
>
>Any help?
>Thanks


Maybe try this:
* Use "=SUM(N2:N" + TRANSFORM(lnLastRow) + ")"
.Columns[1].FormulaR1C1 = myTable.myField
Previous
Reply
Map
View

Click here to load this message in the networking platform