Help please!!!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hunter1978
    New Member
    • May 2006
    • 8

    #1

    Help please!!!

    Hi,

    I wonder if somebody can help me??

    Brief comment on what I doing. I pulling invoice information from a database using ODBC. Info I'm gathering is invoice amount, currency, rate of exchange and whether the invoice is a debit or credit. The problem I'm having is that both the debit and credit figures are come out as positive instead of the credits being a minus figure.

    So what I need the code to do is look at a column to see if it's a debit of credit (D or C) and then divide the amount by the rate of exchange (To always give a amount in GBP) and then turn the figure into a minus if it's a credit.

    If anybody has any ideas on how to do this then they would be much appreciated.

    Thanks.
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi there,

    there in a built in function in vb to handle that part..use the Format() function.. see the below sample.. good luck my fren..

    Code:
    Format(#,##0.00;;;Nil)

    Comment

    Working...