|
-
Aug 22nd, 2000, 03:34 PM
#1
Thread Starter
Hyperactive Member
Hi,
I have a MS Access database with a couple of numeric fields (set as number,standard,2 decimals).
On my form I also have a couple of textboxes with the dataformat set to number & 2 decimal places. I want to insert these fields on my form into the table exactly as the user inputs them, but it keeps on rounding the numbers in the textbox and then writting it like that (rounded) to my table eg 5.56 becomes 6!!
Can anyone tell me how to rectify this!!??
-
Aug 22nd, 2000, 04:42 PM
#2
Frenzied Member
If your data is unbound, force a conversion with the "CCUR" function; ie:
if len(trim(form.field)) < 1 then
database.field= 0.00
else
database.field = ccur(trim(form.field)
end if
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
|