Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing a debit to negative amount
Message
De
07/12/1999 10:58:46
 
 
À
07/12/1999 10:56:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00299782
Message ID:
00299786
Vues:
21
Hi Kevin,

SELECT IIF(dbcr_in="C",trans_amt,-(trans_amt)) AS value FROM table


>In Visual FoxPro 6, how in a query designer do you change all debit account to negative and keeping your credit positive and also keeping the same amount of records.
>
>
>for example
>
>trans_amt DBCR_IN
>64.76 D
>34.65 C
>
>the results would be
>
>trans_amt DBCR_IN
>-64.76 D
>34.65 C
>
>Kevin Schmitt
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform