Hi all,
This is for a medical database. I have a table called Medications that includes five fields indicating the amount of pills to be taken (Mor, Noon, AfN, Eve, HS). All five fields are Double. I need to print out a prescription for selected medications, but I would like to change the number stored in the above fields into text.
Ex: Mor = 1.25 I would like the text to say: one and a quarter pills....
The possible values of the fields start at 0.25 and increase by 0.25 up to 6.75
Is there an easy way to do this without have to write a mile long code for each case.
I was wondering if there is a way to write a code that selects the left and the right sides of the decimal separately.
Thanks for your help
This is for a medical database. I have a table called Medications that includes five fields indicating the amount of pills to be taken (Mor, Noon, AfN, Eve, HS). All five fields are Double. I need to print out a prescription for selected medications, but I would like to change the number stored in the above fields into text.
Ex: Mor = 1.25 I would like the text to say: one and a quarter pills....
The possible values of the fields start at 0.25 and increase by 0.25 up to 6.75
Is there an easy way to do this without have to write a mile long code for each case.
I was wondering if there is a way to write a code that selects the left and the right sides of the decimal separately.
Thanks for your help