473,408 Members | 1,874 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

How to add a Suffix

135 100+
Hi,

I was wondering if there is anyway to add a suffix to a field automatically. I have a field that is for water flow in gallons per minute and I would like to be able to type a number and have it automatically add "gpm". Is there a way to do this? A custom format or mask? Any ideas would be greatly appreciated.

Thank You,
MyWaterloo
Jun 18 '10 #1
3 4693
TheSmileyCoder
2,322 Expert Mod 2GB
Try adding this to the format property of the field:
Expand|Select|Wrap|Line Numbers
  1. #"  gpm"
Jun 18 '10 #2
MyWaterloo
135 100+
Thanks for the reply!
Jun 18 '10 #3
NeoPa
32,556 Expert Mod 16PB
I would suggest storing it numerically and only formatting it with the unit when it's displayed.

A format display string might be :
Expand|Select|Wrap|Line Numbers
  1. "#,##0 gpm"
Jun 18 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: p.kosina | last post by:
Its just for my convienience: When saving new file in IDLE I HAVE to always manually add suffix .py, otherwise it is saved without ANY suffix. Can it be set somewhere? Thank you Pavel
3
by: Joseph | last post by:
Hi all, I want to build a compressed suffix trie from a string for string matching.instead of doing like: input:a string with 10 chars insert char array 10 insert char array 9,10 insert...
7
by: skg | last post by:
Hi, I'm writing a c++ code, where in i'm passing a double value to a function. What i'm sending is a double value in scientific mode say set_value (1234e5.6) G++ compiler cribs about...
12
by: Iain Downie | last post by:
Dear list, we are getting a few folk trying to register for our birdwatching surveys with emails of the form: aname@phonecoop.coop, in other words with a 4 character ending (other examples are...
3
by: Green | last post by:
Hi, I have a question that when i surf the internet, i found out that using ..aspx suffix means using asp.net, using .jsp means using javaserver page, etc. But some don't have any suffix. For...
9
by: Hamish M | last post by:
Hi I am interested in opinions on this topic. I have heard that a suffix is not a good solution and type casts are much better for example. ...
4
by: Denis Jevon | last post by:
I have a problem which is probably simple to solve but I can't find the answer. In the past I have added pages to sites I have built with names like aboutus.html and when I or anyone else wants to...
1
by: SARAHE | last post by:
I have a C++ programming problem to extract a suffix such as Jr. or Sr. from a string that may vary each time. We are currently working with one assigned variable but I wanted to know how to code it...
3
by: Cyber dorkz | last post by:
hello, i've got this problem , as example : long number = 2000000000 my manual says that you must place a suffix after 2000000000 : long number = 2000000000L. suffix L means int must be...
4
by: Weatherman | last post by:
I've searched for an answer to this and can't find one. I can't view pages with the PHP suffix. The basic (top) part comes up in my browser, but the part with the PHP element does not. I've...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.