A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Adding a letter "m" after a calculated number to indicate length



 
 
Thread Tools Display Modes
  #1  
Old May 8th, 2009, 12:19 PM posted to microsoft.public.access
Mark909
external usenet poster
 
Posts: 90
Default Adding a letter "m" after a calculated number to indicate length

I have a table with multiple fields including "Length"

Ive created a query to calculate the total of lengths according to the
project id.

However I was hoping that I could get an "m" after the calculated length so
it will show up in a report as "1548m" for example.

Thanks for any help!
  #2  
Old May 8th, 2009, 12:22 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Adding a letter "m" after a calculated number to indicate length

How are you calculating the length? It should be as simply as adding

& "m"

after that.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"mark909" wrote in message
...
I have a table with multiple fields including "Length"

Ive created a query to calculate the total of lengths according to the
project id.

However I was hoping that I could get an "m" after the calculated length
so
it will show up in a report as "1548m" for example.

Thanks for any help!



  #3  
Old May 8th, 2009, 01:16 PM posted to microsoft.public.access
Mark909
external usenet poster
 
Posts: 90
Default Adding a letter "m" after a calculated number to indicate leng

Hi Douglas,

SumOfLength

Field : Length is calculated from Total: Sum in the design view for the query.

I cant get it to work...

Forgive me if its simple but im still getting the hang of access!!


"Douglas J. Steele" wrote:

How are you calculating the length? It should be as simply as adding

& "m"

after that.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"mark909" wrote in message
...
I have a table with multiple fields including "Length"

Ive created a query to calculate the total of lengths according to the
project id.

However I was hoping that I could get an "m" after the calculated length
so
it will show up in a report as "1548m" for example.

Thanks for any help!




  #4  
Old May 8th, 2009, 09:27 PM posted to microsoft.public.access
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Adding a letter "m" after a calculated number to indicate leng

Go into the SQL view. You should find

Sum(Total) As Length

somewhere in it. Change that to

Sum(Total) & "m" AS Length

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"mark909" wrote in message
...
Hi Douglas,

SumOfLength

Field : Length is calculated from Total: Sum in the design view for the
query.

I cant get it to work...

Forgive me if its simple but im still getting the hang of access!!


"Douglas J. Steele" wrote:

How are you calculating the length? It should be as simply as adding

& "m"

after that.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"mark909" wrote in message
...
I have a table with multiple fields including "Length"

Ive created a query to calculate the total of lengths according to the
project id.

However I was hoping that I could get an "m" after the calculated
length
so
it will show up in a report as "1548m" for example.

Thanks for any help!






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.