PC Review


Reply
Thread Tools Rate Thread

Currency Symbol added to Database Colum ?

 
 
Johnny Dee
Guest
Posts: n/a
 
      9th Mar 2004
Hi,

How do I put a currency symbol $ in front of the value in a Database collum
please ?

Thanks

John.


 
Reply With Quote
 
 
 
 
Jon
Guest
Posts: n/a
 
      9th Mar 2004
Hi,
you could add it in your query, eg
select '$' + MoneyField AS MoneyField
or use formatcurrency on your page
<%=formatcurrency(Recordset("MoneyField"))%>
normally using formatcurrency would be better as it also formats the number
to 2 decimal places, eg £10.20 not £10.2

Jon
Microsoft MVP - FP

Johnny Dee wrote:
> Hi,
>
> How do I put a currency symbol $ in front of the value in a Database
> collum please ?
>
> Thanks
>
> John.



 
Reply With Quote
 
Johnny Dee
Guest
Posts: n/a
 
      10th Mar 2004
Hi Jon,
I'm not sure where to put the line of code you said to put in the page?
Here is the colum of code. Can you advise me please where to place it in
the lines please? I want to format the RRP ex GST.
Thanks again.
John.
<td><!--webbot bot="DatabaseResultColumn" startspan

s-columnnames="ID,Primary Supplier,Supplier Product
Code,Brand,Category,Type,OEMPartNumber,Description,Availability,Last
Modified,Last Update,DBP ex GST,DBP inc GST,RRP ex GST,RRP inc GST,GST,Case
Qty,Desired GP %,For Use In,Information"

s-column="RRP ex GST" b-tableformat="TRUE" b-hasHTML="FALSE" clientside

local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;RRP ex GST&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"

preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;RRP ex
GST&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;" --><%=FP_FieldVal(fp_r
s,"RRP ex GST")%><!--webbot

bot="DatabaseResultColumn" I-CheckSum="20001" endspan -->

</td>



"Jon" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi,
> you could add it in your query, eg
> select '$' + MoneyField AS MoneyField
> or use formatcurrency on your page
> <%=formatcurrency(Recordset("MoneyField"))%>
> normally using formatcurrency would be better as it also formats the

number
> to 2 decimal places, eg £10.20 not £10.2
>
> Jon
> Microsoft MVP - FP
>
> Johnny Dee wrote:
> > Hi,
> >
> > How do I put a currency symbol $ in front of the value in a Database
> > collum please ?
> >
> > Thanks
> >
> > John.

>
>



 
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
How to add new currency Symbol in Format/Cell/Currency NOORZAD Microsoft Excel Misc 2 22nd Jun 2009 07:59 AM
How to add new currency symbol =?Utf-8?B?Vmlub2Q=?= Microsoft Excel Misc 5 23rd Apr 2008 04:37 PM
How do I add a currency symbol =?Utf-8?B?R2FicmllbGE=?= Microsoft Excel Misc 2 20th Aug 2007 09:14 PM
Strange display of a number when currency symbol added Paul Microsoft Access 4 23rd Jan 2007 11:40 AM
Currency Symbol Deon Microsoft Excel Setup 1 6th Apr 2005 10:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:45 AM.