Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


On Fri, 2012-04-13 at 17:49 +0200, Andreas Säger wrote:
Am 13.04.2012 17:42, leon244 wrote:
I am trying to find a way to format the text fields in my small data base to
be uppercase only. Is there a way to do it at the table field level with the
'format', or can it only be done at the form level through a pattern field
using 'X'?

--
View this message in context: 
http://nabble.documentfoundation.org/How-to-format-data-entry-in-base-table-to-UPPERCASE-only-tp3908311p3908311.html
Sent from the Users mailing list archive at Nabble.com.


Since 'x' and 'X' are different characters, this has nothing to do with 
"formatting".
Set the field type to VARCHAR_IGNORECASE so 'x' and 'X' are considered 
as equivalent. In queries you can use the UCASE or UPPER function in 
order to display the upper case version of the text.


Howdy,

Right - well the VARCHAR_IGNORECASE is fairly specific to HSQLdb, but it
works well.

You may also create an update trigger, using an SQL command via the SQL
window, to cast all input to upper case before it is written into the
data field - for any relational database engine used by Base, including
the embedded HSQLdb engine, the syntax varies a bit from engine to
engine however.

//drew


-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.