PC Review


Reply
Thread Tools Rate Thread

Database results format problem

 
 
MickB Tenerife
Guest
Posts: n/a
 
      21st Mar 2010
Hi I have an issue with a field [priceeuros] that reports out as a sinle
interger, no commas, can someone help please
This is the second page of the DBRW I am experimenting with, but there is a
syntax problem
SELECT * FROM Apmt1bed,
format([priceeuros],'Currency') as fmtamount,
ORDER BY PriceEuros ASC

I have 1234567 and want 1,234,567

thank you for your help
 
Reply With Quote
 
 
 
 
Stefan B Rusynko
Guest
Posts: n/a
 
      22nd Mar 2010
See http://www.spiderwebwoman.com/resour...s.asp#currency
If you don't want the $ format, just use

Format(priceeuros,'#,##0.00') as fmtamount

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"MickB Tenerife" <(E-Mail Removed)> wrote in message
news:296E2AF7-623E-480F-B371-(E-Mail Removed)...
Hi I have an issue with a field [priceeuros] that reports out as a sinle
interger, no commas, can someone help please
This is the second page of the DBRW I am experimenting with, but there is a
syntax problem
SELECT * FROM Apmt1bed,
format([priceeuros],'Currency') as fmtamount,
ORDER BY PriceEuros ASC

I have 1234567 and want 1,234,567

thank you for your help


 
Reply With Quote
 
MickB Tenerife
Guest
Posts: n/a
 
      23rd Mar 2010
Hi Stefan thank you for the reply, howeve from a novice, where do i insert
the format code please.
If I go to page 2 of the DBRW I get

SELECT * FROM Apmt1bed ORDER BY PriceEuros ASC

if I try to change it to

SELECT * FROM Apmt1bed,
format([priceeuros],'Currency') as fmtamount,
ORDER BY PriceEuros ASC
I get errors, any ideas please?

"Stefan B Rusynko" wrote:

> See http://www.spiderwebwoman.com/resour...s.asp#currency
> If you don't want the $ format, just use
>
> Format(priceeuros,'#,##0.00') as fmtamount
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "MickB Tenerife" <(E-Mail Removed)> wrote in message
> news:296E2AF7-623E-480F-B371-(E-Mail Removed)...
> Hi I have an issue with a field [priceeuros] that reports out as a sinle
> interger, no commas, can someone help please
> This is the second page of the DBRW I am experimenting with, but there is a
> syntax problem
> SELECT * FROM Apmt1bed,
> format([priceeuros],'Currency') as fmtamount,
> ORDER BY PriceEuros ASC
>
> I have 1234567 and want 1,234,567
>
> thank you for your help
>
>
> .
>

 
Reply With Quote
 
Kathleen Anderson
Guest
Posts: n/a
 
      23rd Mar 2010
Hi Mick:

Where did you make your changes? You should find the SQL in the gray-colored
code and make your changes. Save the changes while still in Code view. You
will notice that once you've saved your changes they are also made to the
maroon colored code - that is by design. The maroon colored code should
never be touched; it's generated by the gray code at save time.

What kind of errors are you getting?

--

~ Kathleen Anderson
Microsoft MVP - Expression Web
Spider Web Woman Designs
Expression Web Resources: http://www.spiderwebwoman.com/xweb/
Expression Web Wiki: http://expression-web-wiki.com/
FrontPage Resources: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others


"MickB Tenerife" <(E-Mail Removed)> wrote in message
news:0A57DEA7-026A-4675-8056-(E-Mail Removed)...
> Hi Stefan thank you for the reply, howeve from a novice, where do i insert
> the format code please.
> If I go to page 2 of the DBRW I get
>
> SELECT * FROM Apmt1bed ORDER BY PriceEuros ASC
>
> if I try to change it to
>
> SELECT * FROM Apmt1bed,
> format([priceeuros],'Currency') as fmtamount,
> ORDER BY PriceEuros ASC
> I get errors, any ideas please?
>
> "Stefan B Rusynko" wrote:
>
>> See
>> http://www.spiderwebwoman.com/resour...s.asp#currency
>> If you don't want the $ format, just use
>>
>> Format(priceeuros,'#,##0.00') as fmtamount
>>
>> --
>>
>> _____________________________________________
>> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
>> "Warning - Using the F1 Key will not break anything!" (-;
>> _____________________________________________
>>
>>
>> "MickB Tenerife" <(E-Mail Removed)> wrote in
>> message
>> news:296E2AF7-623E-480F-B371-(E-Mail Removed)...
>> Hi I have an issue with a field [priceeuros] that reports out as a sinle
>> interger, no commas, can someone help please
>> This is the second page of the DBRW I am experimenting with, but there is
>> a
>> syntax problem
>> SELECT * FROM Apmt1bed,
>> format([priceeuros],'Currency') as fmtamount,
>> ORDER BY PriceEuros ASC
>>
>> I have 1234567 and want 1,234,567
>>
>> thank you for your help
>>
>>
>> .
>>




 
Reply With Quote
 
Stefan B Rusynko
Guest
Posts: n/a
 
      24th Mar 2010
Plus you don't have your new variable in the correct place
- and the FP DBRW doesn't write Select *
(it enumerates the variables in the Select statement as a coma separated list)
You have
SELECT * FROM Apmt1bed ORDER BY PriceEuros ASC
And should have say
SELECT PriceEuros, otherfield FROM Apmt1bed ORDER BY PriceEuros ASC
where , otherfield would be your other DB fieldname or fieldnames required as a coma separated list
And you would add your custom variable in the Select part as say
SELECT Format(PriceEuros,'#,##0.00') as fmtamount, otherfield FROM Apmt1bed ORDER BY PriceEuros ASC

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"Kathleen Anderson" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
Hi Mick:

Where did you make your changes? You should find the SQL in the gray-colored
code and make your changes. Save the changes while still in Code view. You
will notice that once you've saved your changes they are also made to the
maroon colored code - that is by design. The maroon colored code should
never be touched; it's generated by the gray code at save time.

What kind of errors are you getting?

--

~ Kathleen Anderson
Microsoft MVP - Expression Web
Spider Web Woman Designs
Expression Web Resources: http://www.spiderwebwoman.com/xweb/
Expression Web Wiki: http://expression-web-wiki.com/
FrontPage Resources: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others


"MickB Tenerife" <(E-Mail Removed)> wrote in message
news:0A57DEA7-026A-4675-8056-(E-Mail Removed)...
> Hi Stefan thank you for the reply, howeve from a novice, where do i insert
> the format code please.
> If I go to page 2 of the DBRW I get
>
> SELECT * FROM Apmt1bed ORDER BY PriceEuros ASC
>
> if I try to change it to
>
> SELECT * FROM Apmt1bed,
> format([priceeuros],'Currency') as fmtamount,
> ORDER BY PriceEuros ASC
> I get errors, any ideas please?
>
> "Stefan B Rusynko" wrote:
>
>> See
>> http://www.spiderwebwoman.com/resour...s.asp#currency
>> If you don't want the $ format, just use
>>
>> Format(priceeuros,'#,##0.00') as fmtamount
>>
>> --
>>
>> _____________________________________________
>> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
>> "Warning - Using the F1 Key will not break anything!" (-;
>> _____________________________________________
>>
>>
>> "MickB Tenerife" <(E-Mail Removed)> wrote in
>> message
>> news:296E2AF7-623E-480F-B371-(E-Mail Removed)...
>> Hi I have an issue with a field [priceeuros] that reports out as a sinle
>> interger, no commas, can someone help please
>> This is the second page of the DBRW I am experimenting with, but there is
>> a
>> syntax problem
>> SELECT * FROM Apmt1bed,
>> format([priceeuros],'Currency') as fmtamount,
>> ORDER BY PriceEuros ASC
>>
>> I have 1234567 and want 1,234,567
>>
>> thank you for your help
>>
>>
>> .
>>





 
Reply With Quote
 
MickB Tenerife
Guest
Posts: n/a
 
      25th Mar 2010
Hi Kathleen and Stefan,
That was the perfect joint answer, I just could not see it myself. Many
thanks to you both, problem solved, my sincere thanks to you both, Mick


"Stefan B Rusynko" wrote:

> Plus you don't have your newvariable in the correct place
> - and the FP DBRW doesn't write Select *
> (it enumerates the variables in the Select statement as a coma separated list)
> You have
> SELECT * FROM Apmt1bed ORDER BY PriceEuros ASC
> And should have say
> SELECT PriceEuros, otherfield FROM Apmt1bed ORDER BY PriceEuros ASC
> where , otherfield would be your other DB fieldname or fieldnames required as a coma separated list
> And you would add your custom variable in the Select part as say
> SELECT Format(PriceEuros,'#,##0.00') as fmtamount, otherfield FROM Apmt1bed ORDER BY PriceEuros ASC
>
> --
>
> _____________________________________________
> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> "Warning - Using the F1 Key will not break anything!" (-;
> _____________________________________________
>
>
> "Kathleen Anderson" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> Hi Mick:
>
> Where did you make your changes? You should find the SQL in the gray-colored
> code and make your changes. Save the changes while still in Code view. You
> will notice that once you've saved your changes they are also made to the
> maroon colored code - that is by design. The maroon colored code should
> never be touched; it's generated by the gray code at save time.
>
> What kind of errors are you getting?
>
> --
>
> ~ Kathleen Anderson
> Microsoft MVP - Expression Web
> Spider Web Woman Designs
> Expression Web Resources: http://www.spiderwebwoman.com/xweb/
> Expression Web Wiki: http://expression-web-wiki.com/
> FrontPage Resources: http://www.spiderwebwoman.com/resources/
> Please reply to the newsgroup for the benefit of others
>
>
> "MickB Tenerife" <(E-Mail Removed)> wrote in message
> news:0A57DEA7-026A-4675-8056-(E-Mail Removed)...
> > Hi Stefan thank you for the reply, howeve from a novice, where do i insert
> > the format code please.
> > If I go to page 2 of the DBRW I get
> >
> > SELECT * FROM Apmt1bed ORDER BY PriceEuros ASC
> >
> > if I try to change it to
> >
> > SELECT * FROM Apmt1bed,
> > format([priceeuros],'Currency') as fmtamount,
> > ORDER BY PriceEuros ASC
> > I get errors, any ideas please?
> >
> > "Stefan B Rusynko" wrote:
> >
> >> See
> >> http://www.spiderwebwoman.com/resour...s.asp#currency
> >> If you don't want the $ format, just use
> >>
> >> Format(priceeuros,'#,##0.00') as fmtamount
> >>
> >> --
> >>
> >> _____________________________________________
> >> SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
> >> "Warning - Using the F1 Key will not break anything!" (-;
> >> _____________________________________________
> >>
> >>
> >> "MickB Tenerife" <(E-Mail Removed)> wrote in
> >> message
> >> news:296E2AF7-623E-480F-B371-(E-Mail Removed)...
> >> Hi I have an issue with a field [priceeuros] that reports out as a sinle
> >> interger, no commas, can someone help please
> >> This is the second page of the DBRW I am experimenting with, but there is
> >> a
> >> syntax problem
> >> SELECT * FROM Apmt1bed,
> >> format([priceeuros],'Currency') as fmtamount,
> >> ORDER BY PriceEuros ASC
> >>
> >> I have 1234567 and want 1,234,567
> >>
> >> thank you for your help
> >>
> >>
> >> .
> >>

>
>
>
>
> .
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database results format field Mick Microsoft Frontpage 2 20th Feb 2009 06:47 PM
Format Database results =?Utf-8?B?TWljaw==?= Microsoft Frontpage 5 11th Jun 2007 09:53 PM
date format - database results wizard Andrew Murray Microsoft Frontpage 4 5th Sep 2006 11:28 AM
Format database results column =?Utf-8?B?S2V2aW4gUnVyeQ==?= Microsoft Frontpage 1 4th Apr 2006 10:47 AM
Format date in a database results region =?Utf-8?B?YmVhY29u?= Microsoft Frontpage 4 5th May 2005 02:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:46 AM.