Group:  Microsoft Access ยป microsoft.public.access.formscoding
Thread: Help with Currency Format

Geek News

Help with Currency Format
Gator 11/24/2008 5:29:02 PM
How do I format the Amount column to Currency in a List box using the
following...

List39.RowSource = "SELECT Deposits.DateDep, SUM(Deposits.Amount) FROM
Deposits GROUP BY Deposits.DateDep ORDER BY Deposits.DateDep DESC;"

thanks
Re: Help with Currency Format
fredg <fgutkind[ at ]example.invalid> 11/24/2008 5:38:35 PM
On Mon, 24 Nov 2008 09:29:02 -0800, Gator wrote:

[Quoted Text]
> How do I format the Amount column to Currency in a List box using the
> following...
>
> List39.RowSource = "SELECT Deposits.DateDep, SUM(Deposits.Amount) FROM
> Deposits GROUP BY Deposits.DateDep ORDER BY Deposits.DateDep DESC;"
>
> thanks

Format(SUM(Deposits.Amount) ,"currency")
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Re: Help with Currency Format
Gator 11/24/2008 5:56:08 PM
I get compile error expected end of statement with the following....

List39.RowSource = "SELECT Deposits.DateDep,
Format(SUM(Deposits.Amount),"currency") FROM Deposits GROUP BY
Deposits.DateDep ORDER BY Deposits.DateDep DESC;"

"fredg" wrote:

[Quoted Text]
> On Mon, 24 Nov 2008 09:29:02 -0800, Gator wrote:
>
> > How do I format the Amount column to Currency in a List box using the
> > following...
> >
> > List39.RowSource = "SELECT Deposits.DateDep, SUM(Deposits.Amount) FROM
> > Deposits GROUP BY Deposits.DateDep ORDER BY Deposits.DateDep DESC;"
> >
> > thanks
>
> Format(SUM(Deposits.Amount) ,"currency")
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>
Re: Help with Currency Format
Gator 11/24/2008 5:58:04 PM
single quotes work....

List39.RowSource = "SELECT Deposits.DateDep,
Format(SUM(Deposits.Amount),'currency') FROM Deposits GROUP BY
Deposits.DateDep ORDER BY Deposits.DateDep DESC;"

thanks

"fredg" wrote:

[Quoted Text]
> On Mon, 24 Nov 2008 09:29:02 -0800, Gator wrote:
>
> > How do I format the Amount column to Currency in a List box using the
> > following...
> >
> > List39.RowSource = "SELECT Deposits.DateDep, SUM(Deposits.Amount) FROM
> > Deposits GROUP BY Deposits.DateDep ORDER BY Deposits.DateDep DESC;"
> >
> > thanks
>
> Format(SUM(Deposits.Amount) ,"currency")
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net