Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best Data Type of fileds for Numbers?

Status
Not open for further replies.

Fekri

Programmer
Jan 3, 2004
284
IR
Hi,

I have headache problem in my tables data:

I need just 2 decimal on all numbers in the fields just when needed.
for example If the number has no any decimal should not show any decimal place in filed data and when I entered the "25.0245689" just show "25.02"
I used fixed or round or many thing in record source of text boxes but in calculation of some query the rules will changed.

Thanks for any Idea which type of format for Number is best for my tables?

Thanks
Ali
 
I think you need to use the following:

Data Type: Numeric
Field Size: Decimal
Scale: 2
Decimal Places: 2

Scale determines the number of digits after the decimal that are stored.

Decimal Places determines the number of digits after the decimal place that are displayed.

Setting Decimal Places without Scale may be what is causing the symptoms you describe.

Ed Metcalfe.

Please do not feed the trolls.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top