Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Query formatted as currency - How?

Discussion in 'Information Technology' started by Gina, Jul 28, 2006.

  1. Gina

    Gina
    Expand Collapse
    Guest

    I am working with a query. I have the below sql statement, everything works
    fine. However, I would like the 'Forecast' expression to be formatted as
    Currency... Any suggestions?


    SELECT ARBAL.Collector, Sum(ARBAL.[Cust AR Balance]) AS [SumOfCust AR
    Balance], Sum([Cust AR Balance]*0.85) AS Forecast
    FROM ARBAL
    GROUP BY ARBAL.Collector
    HAVING (((ARBAL.Collector)="7") AND ((Sum(ARBAL.[Cust AR Balance]))>10.89))
    WITH OWNERACCESS OPTION;

    Thanks :)
    --
    Gina
     
  2. Loading...

    Similar Threads Forum Date
    Query about Jhatka Meat by Shooting in Head Sikh Sikhi Sikhism Aug 26, 2011
    Who is a sikh? A non sikh friend's query!! Sikh Sikhi Sikhism Apr 30, 2010
    General Query Hard Talk Sep 4, 2008
    Power of pauri's in Japji Sahib query Sikh Sikhi Sikhism Aug 17, 2006
    Sikhism a query Book Reviews & Editorials Aug 2, 2005

  3. schasteen

    schasteen
    Expand Collapse
    Guest

    Is [Cust AR Balance] data type currency in the table? You can also in the
    query design view right click on the column you want to change and select
    properties and set the format to currency.

    "Gina" wrote:

    > I am working with a query. I have the below sql statement, everything works
    > fine. However, I would like the 'Forecast' expression to be formatted as
    > Currency... Any suggestions?
    >
    >
    > SELECT ARBAL.Collector, Sum(ARBAL.[Cust AR Balance]) AS [SumOfCust AR
    > Balance], Sum([Cust AR Balance]*0.85) AS Forecast
    > FROM ARBAL
    > GROUP BY ARBAL.Collector
    > HAVING (((ARBAL.Collector)="7") AND ((Sum(ARBAL.[Cust AR Balance]))>10.89))
    > WITH OWNERACCESS OPTION;
    >
    > Thanks :)
    > --
    > Gina
     
  4. Gina

    Gina
    Expand Collapse
    Guest

    Schasteen,

    The table does reflect currency for the field, however, in the query it
    would not reflect the format. I did do a right click on the field in the
    query and chose currency and it worked great.

    Thanks for your quick response.
    --
    Gina


    "schasteen" wrote:

    > Is [Cust AR Balance] data type currency in the table? You can also in the
    > query design view right click on the column you want to change and select
    > properties and set the format to currency.
    >
    > "Gina" wrote:
    >
    > > I am working with a query. I have the below sql statement, everything works
    > > fine. However, I would like the 'Forecast' expression to be formatted as
    > > Currency... Any suggestions?
    > >
    > >
    > > SELECT ARBAL.Collector, Sum(ARBAL.[Cust AR Balance]) AS [SumOfCust AR
    > > Balance], Sum([Cust AR Balance]*0.85) AS Forecast
    > > FROM ARBAL
    > > GROUP BY ARBAL.Collector
    > > HAVING (((ARBAL.Collector)="7") AND ((Sum(ARBAL.[Cust AR Balance]))>10.89))
    > > WITH OWNERACCESS OPTION;
    > >
    > > Thanks :)
    > > --
    > > Gina
     

Share This Page