Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing a debit to negative amount
Message
De
07/12/1999 11:48:04
 
 
À
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:
00299806
Vues:
22
>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
>

Use an expression for trans_amt, such as:

IIF(DBCR_IN = 'D', 0 - trans_amt, trans_amt)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform