[Solved] decimal numbers disappeared in Currency field

Discuss the database features
Post Reply
IreneEng
Posts: 19
Joined: Thu Jul 27, 2017 10:00 pm

[Solved] decimal numbers disappeared in Currency field

Post by IreneEng »

Good Morning
Field Type -> Number
Format: $0.00

But in the Table, when I enter 51.70, it shows $51.00

:crazy:
Last edited by RoryOF on Wed Nov 01, 2017 10:49 pm, edited 1 time in total.
Reason: Added [Solved] and green tick [RoryOF, Moderator]
Apache OpenOffice 4.1.2
Windows 10 ... I think
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: decimal numbers disappeared in Currency field

Post by Villeroy »

Ignore currency fields. Simply use formatted fields. Right-click>Replace With>Formatted Field. Formatted fields can be formatted like spreadsheet cells. Of course, the underlying column type of your database table should store decimals of a sufficient size. Column type Decimal(9,2) supports up to 9 digits including 2 points after the decimal point.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
IreneEng
Posts: 19
Joined: Thu Jul 27, 2017 10:00 pm

Re: decimal numbers disappeared in Currency field

Post by IreneEng »

Thank you Herr Roy

Not working: I right licked the title in the Table -> Column Format, Field Format window opens up with this format code "[$$-409]#,##0.00;[RED]-[$$-409]#,##0.00" ... I didn't make any change since the example shown is what I need.
Apache OpenOffice 4.1.2
Windows 10 ... I think
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: decimal numbers disappeared in Currency field

Post by Villeroy »

The data type of a table column has nothing to do with formatting.

RIght-click the table and choose "Edit"
Click the column in question. What is the data type, the lenght and the decimal digits?
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
IreneEng
Posts: 19
Joined: Thu Jul 27, 2017 10:00 pm

Re: decimal numbers disappeared in Currency field

Post by IreneEng »

Danke Herr R
It worked
Thank you for your patience!
Apache OpenOffice 4.1.2
Windows 10 ... I think
Post Reply