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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Number" data type problem

Status
Not open for further replies.

MarkRCC

IS-IT--Management
Apr 26, 2001
167
CA
Hi.

I have a field within a table (2 fields total: company name & rate) with the following settings:

field name: rate
data type: number
field size: long integer
format: percent
decimal places: 0
default value: 0
The default value in the field itself shows: 0%

When I attempt to populate the table, the following occurs:

company name: XYZ Company
rate: 100%

When I hit <tab> to go to the next record (I'm in datasheet view to populate the table), the value in the rate field changes to 10000% (adds 2 additional zeroes to whatever value I enter).

Any ideas why this might be happening? I'm sure it's a setting I'm missing or have wrong, but I can't find it.

Many TIAs!

Mark

 
The effect of percent formatting is to multiple the entered value by 100 and append a &quot;%&quot; sign. It's intended use is to be able to present things like 0.75 as 75%. You have defined this thing as a long which means that it can accept only whole numbers. You need a Single, Double or Currency data type so that fractions can be entered.
 
Thanks Golom.

I just realized my mistake. I appreciate the FAST response!

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top