Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formula does not work
Message
De
06/07/2013 05:15:36
 
 
À
06/07/2013 03:29:36
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01577874
Message ID:
01577875
Vues:
65
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform