Currency question

J

Joe Cilinceon

I ran into a strange problem. I have a form that takes payments and when
showing the total at the bottom of what is owed it is dropping the change.
For example it shows as $35.50 in the field but then shows $35.00 in the
total field. Now I've checked and all fields are formated for Currency. My
question is this according to what I've read, Access 2002 will default all
integer values to long integer which is what currency would be. In the code
behind it I have it total all the values that could have been paid using
NZ(fieldname here,0) + Nz(next field name,0) etc. What am I missing on this.
 
J

Joe Cilinceon

NEVER mind DUH I figured it out, had the Function doing the math
deminisioned as an Integer.
 
J

John Vinson

NEVER mind DUH I figured it out, had the Function doing the math
deminisioned as an Integer.

Make sure the table Fields are of Currency datatype as well. There is
a Currency *format* but applying it to a Long Integer number field
does not change the fact that the field accepts only integers.

John W. Vinson[MVP]
 
J

Joe Cilinceon

The underlying tables are all Currency. I have a function that keeps the
totals correct on any change on the form. This is where I had it declared
and Integer. Thanks John.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top