Hello,
I have read about currency calculations, etc. in this newsgroup, and I
understand that currency math will be sufficiently accurate for what I
need to do for a mileage/expense report.
Where I'm stuck is what data type etc. I should use for the mileage
distance number -- single?? decimal?? for the amount of mileage
distance traveled, to two decimal places maximum, but allowing for no
decimals or one decimal place or two decimal places.
Then in a query or even form field which calculates the mileage
reimbursement money amount, I need to multiply the mileage amount times
$.31 to get the money amount, and have the query result be an accurate
currency value displayed to 2 decimal places, therefore I need to have
an accurate data entry for the mileage distance amount (e.g. 10.0 miles
or more).
Basically the expense report should work more or less like this
unfinished HTML example page:
http://www.visualwave.com/expense.
This simple page auto-calculates expenses or mileages in each row and
adds them up in each column, and generates a grand total, but contains
various rather unwieldy JavaScript, etc. It's been tested for the
calculations, but the form data entry validations are not so hot (for
proper decimal places). The first row works best. Perhaps I should
stick with this, and backend a database to this form...
My other option is to use Visual Web Developer and ASP.NET 2.0 against
an Access database, but that also requires validation, queries, etc.
that Access can easily do for me, even if I do have to give 150 people
an MDE file, sigh.
Thank you for reading this,
Tom