Stacie
asked on
String format Money
I have the following querry that give me the cost of medication as 63.9300 I would like to have this fomat instead. $69.93
SELECT Prescription.ClientID, Prescription.CostMedicatio n, Prescription.ReApplyDate, Prescription.[Med Rcvd Date], Prescription.Dosages,
Prescription.Frequency, Prescription.Notes, Medication_1.Medicaiton_Na me, Prescription.MedicationID
FROM Prescription INNER JOIN
Medication_1 ON Prescription.MedicationID = Medication_1.Medication_ID
WHERE (Prescription.ReApplyDate BETWEEN @Date1 AND @Date2)
ORDER BY Prescription.ClientID
SELECT Prescription.ClientID, Prescription.CostMedicatio
Prescription.Frequency, Prescription.Notes, Medication_1.Medicaiton_Na
FROM Prescription INNER JOIN
Medication_1 ON Prescription.MedicationID = Medication_1.Medication_ID
WHERE (Prescription.ReApplyDate BETWEEN @Date1 AND @Date2)
ORDER BY Prescription.ClientID
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
"63.9300 I would like to have this fomat instead. $69.93"
Format (varCurr, "$#.00")
Format (varCurr, "$#.00")
Example select query:
SELECT a.f1, a.f2, Format([f3],"$#.00") AS Expr1
FROM a;
f1 f2 Expr1
1 2 $3.00
2 2 $4.00
2 3 $5.00
SELECT a.f1, a.f2, Format([f3],"$#.00") AS Expr1
FROM a;
f1 f2 Expr1
1 2 $3.00
2 2 $4.00
2 3 $5.00
Open in new window