-
Currency Format
I have reviewed this forum for all currency format help but haven't been able to find a solution. There are some specific examples to relate to my question but i must have a different version or something different in my coding. I am trying to format currency in whole dollars but no success. Below is my code. Can anyone help?
$45,000,000.56 to $45,000,000
<%
MyDb.DBColor = "4,auto,yellow"
MyDb.dbGridTableTag = "border=1 cellspacing=2 cellpadding=2"
MyDb.dbMode= "grid"
MC = MC & "CSU, align=center bgcolor=#CCCCCC,<A HREF=#CSU#.asp>drill</A>,; DRG,align=center bgcolor=#CCCCCC,<A HREF=#DRG#.asp>drill</A>; Payor,align=center bgcolor=#CCCCCC,<A HREF=#Payor#.asp>drill</A>;"
MC = MC & "Facility,align=center,; FY,align=center,; Cases,align=right,; ALOS,align=right,format=[#.0],; Charges, align=right, format=[currency],; Costs, align=right, format=[currency],; AdjNetRev, align=right, format=[currency],; ANR_Margin, align=right, format=[currency],; Payments, align=right, format=[currency],; Pay_Margin, align=right, format=[currency];"
MyDb.dbMagicCell = MC
MyDb.dbGridInc = 2
Mydb.dbOptions = "HeaderFontTag=Verdana Size=2,CellFontTag=Face=Verdana Size=1"
MyDb.dbSQL = "Select * FROM Comparesummary WHERE Facility Like '" & WhereClause & "'"
MyDb.dbImageDir="/images/"
Mydb.dbNavigation="bottom"
Mydb.dbNavigationItem="top, bottom, next, prev, gridrow, color, filter, download"
Mydb.dbNavigationIcon="std"
MyDb.dbUnit = 2
MyDb.aspDBPro
%>
-
Currency Format (reply)
1. user format=[$###,###] - REMEMBER to change the delimiters involving "#" and ",".
2. Update your version.. too old !
FK
------------
Robert at 8/7/01 8:46:19 AM
I have reviewed this forum for all currency format help but haven't been able to find a solution. There are some specific examples to relate to my question but i must have a different version or something different in my coding. I am trying to format currency in whole dollars but no success. Below is my code. Can anyone help?
$45,000,000.56 to $45,000,000
<%
MyDb.DBColor = "4,auto,yellow"
MyDb.dbGridTableTag = "border=1 cellspacing=2 cellpadding=2"
MyDb.dbMode= "grid"
MC = MC & "CSU, align=center bgcolor=#CCCCCC,<A HREF=#CSU#.asp>drill</A>,; DRG,align=center bgcolor=#CCCCCC,<A HREF=#DRG#.asp>drill</A>; Payor,align=center bgcolor=#CCCCCC,<A HREF=#Payor#.asp>drill</A>;"
MC = MC & "Facility,align=center,; FY,align=center,; Cases,align=right,; ALOS,align=right,format=[#.0],; Charges, align=right, format=[currency],; Costs, align=right, format=[currency],; AdjNetRev, align=right, format=[currency],; ANR_Margin, align=right, format=[currency],; Payments, align=right, format=[currency],; Pay_Margin, align=right, format=[currency];"
MyDb.dbMagicCell = MC
MyDb.dbGridInc = 2
Mydb.dbOptions = "HeaderFontTag=Verdana Size=2,CellFontTag=Face=Verdana Size=1"
MyDb.dbSQL = "Select * FROM Comparesummary WHERE Facility Like '" & WhereClause & "'"
MyDb.dbImageDir="/images/"
Mydb.dbNavigation="bottom"
Mydb.dbNavigationItem="top, bottom, next, prev, gridrow, color, filter, download"
Mydb.dbNavigationIcon="std"
MyDb.dbUnit = 2
MyDb.aspDBPro
%>
-
Currency Format (reply)
Thanks for the reply Frank. I tried your suggestion but keeping getting this error: Error in # pairs in - format=[$###
I don't know what you mean with changing the delimiteres involving "#" and "'"
------------
Frank Kwong at 8/8/01 12:21:03 PM
1. user format=[$###,###] - REMEMBER to change the delimiters involving "#" and ",".
2. Update your version.. too old !
FK
------------
Robert at 8/7/01 8:46:19 AM
I have reviewed this forum for all currency format help but haven't been able to find a solution. There are some specific examples to relate to my question but i must have a different version or something different in my coding. I am trying to format currency in whole dollars but no success. Below is my code. Can anyone help?
$45,000,000.56 to $45,000,000
<%
MyDb.DBColor = "4,auto,yellow"
MyDb.dbGridTableTag = "border=1 cellspacing=2 cellpadding=2"
MyDb.dbMode= "grid"
MC = MC & "CSU, align=center bgcolor=#CCCCCC,<A HREF=#CSU#.asp>drill</A>,; DRG,align=center bgcolor=#CCCCCC,<A HREF=#DRG#.asp>drill</A>; Payor,align=center bgcolor=#CCCCCC,<A HREF=#Payor#.asp>drill</A>;"
MC = MC & "Facility,align=center,; FY,align=center,; Cases,align=right,; ALOS,align=right,format=[#.0],; Charges, align=right, format=[currency],; Costs, align=right, format=[currency],; AdjNetRev, align=right, format=[currency],; ANR_Margin, align=right, format=[currency],; Payments, align=right, format=[currency],; Pay_Margin, align=right, format=[currency];"
MyDb.dbMagicCell = MC
MyDb.dbGridInc = 2
Mydb.dbOptions = "HeaderFontTag=Verdana Size=2,CellFontTag=Face=Verdana Size=1"
MyDb.dbSQL = "Select * FROM Comparesummary WHERE Facility Like '" & WhereClause & "'"
MyDb.dbImageDir="/images/"
Mydb.dbNavigation="bottom"
Mydb.dbNavigationItem="top, bottom, next, prev, gridrow, color, filter, download"
Mydb.dbNavigationIcon="std"
MyDb.dbUnit = 2
MyDb.aspDBPro
%>
-
Currency Format (reply)
format [$###,###] conflicts with the property delimiter becasue the "#" and the "," is used. Change (;,[]#|~/) to something like (;^[]%|~/) then it'll work !! DO not forget to update your version !!
FK
------------
Robert at 8/8/01 4:32:20 PM
Thanks for the reply Frank. I tried your suggestion but keeping getting this error: Error in # pairs in - format=[$###
I don't know what you mean with changing the delimiteres involving "#" and "'"
------------
Frank Kwong at 8/8/01 12:21:03 PM
1. user format=[$###,###] - REMEMBER to change the delimiters involving "#" and ",".
2. Update your version.. too old !
FK
------------
Robert at 8/7/01 8:46:19 AM
I have reviewed this forum for all currency format help but haven't been able to find a solution. There are some specific examples to relate to my question but i must have a different version or something different in my coding. I am trying to format currency in whole dollars but no success. Below is my code. Can anyone help?
$45,000,000.56 to $45,000,000
<%
MyDb.DBColor = "4,auto,yellow"
MyDb.dbGridTableTag = "border=1 cellspacing=2 cellpadding=2"
MyDb.dbMode= "grid"
MC = MC & "CSU, align=center bgcolor=#CCCCCC,<A HREF=#CSU#.asp>drill</A>,; DRG,align=center bgcolor=#CCCCCC,<A HREF=#DRG#.asp>drill</A>; Payor,align=center bgcolor=#CCCCCC,<A HREF=#Payor#.asp>drill</A>;"
MC = MC & "Facility,align=center,; FY,align=center,; Cases,align=right,; ALOS,align=right,format=[#.0],; Charges, align=right, format=[currency],; Costs, align=right, format=[currency],; AdjNetRev, align=right, format=[currency],; ANR_Margin, align=right, format=[currency],; Payments, align=right, format=[currency],; Pay_Margin, align=right, format=[currency];"
MyDb.dbMagicCell = MC
MyDb.dbGridInc = 2
Mydb.dbOptions = "HeaderFontTag=Verdana Size=2,CellFontTag=Face=Verdana Size=1"
MyDb.dbSQL = "Select * FROM Comparesummary WHERE Facility Like '" & WhereClause & "'"
MyDb.dbImageDir="/images/"
Mydb.dbNavigation="bottom"
Mydb.dbNavigationItem="top, bottom, next, prev, gridrow, color, filter, download"
Mydb.dbNavigationIcon="std"
MyDb.dbUnit = 2
MyDb.aspDBPro
%>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|