|
-
Dec 30th, 2002, 03:59 PM
#1
Thread Starter
Addicted Member
Currency field with Decimal
I have a problem with access field which currency type I have put it as 3 decimal, when I type something like 1.655 it works fine and save it the same like 1.655 in the table but when I type 1.500 it saves only 1.5 in the table is there away to save it like 1.500 and show 00??
Thanks in advance.
-
Dec 30th, 2002, 04:01 PM
#2
Let me in ..
Re: Currency field with Decimal
Originally posted by mohsinof
I have a problem with access field which currency type I have put it as 3 decimal, when I type something like 1.655 it works fine and save it the same like 1.655 in the table but when I type 1.500 it saves only 1.5 in the table is there away to save it like 1.500 and show 00??
Thanks in advance.
Yeah, use string instead of currency ...
-
Dec 30th, 2002, 04:04 PM
#3
Thread Starter
Addicted Member
Yeah, use string instead of currency
But there is no string data type in access ??!!
-
Dec 30th, 2002, 04:38 PM
#4
Thread Starter
Addicted Member
I tried to but in my vb code
Where x is the value
but still is shows 1.5 instead of 1.500 , it doesn't shows only the last two zero but when I type 3.355 it shows the three decimal places 3.355 !!
Any further help??
-
Dec 30th, 2002, 05:02 PM
#5
Frenzied Member
I think:
Change your MS ACCESS field from Currency to Text
And
You know the field in Access is set to currency so whatever you save there will be saved as its saving now. So change it to Text and then use the code above. It shd work all well!!!
-
Dec 30th, 2002, 05:06 PM
#6
Thread Starter
Addicted Member
But I would like to make calculation on that field like
Currency_Field *0.5
if it is text it will not calculate??
Thanks again
-
Dec 30th, 2002, 05:12 PM
#7
Frenzied Member
If you wish to perform calculations you can do this:
VB Code:
Currency_Field * Val(Text1.Text) 'This will convert string to integer data type...so that you can perform calculations...
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
|
Click Here to Expand Forum to Full Width
|