Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $95

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
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page