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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Add character to string



 
 
Thread Tools Display Modes
  #1  
Old June 7th, 2010, 03:06 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Add character to string

Twimm wrote:

I have a simple query that pulls data from a single table containing
some basic client information. One field is a text field containing
alpha-numeric data. For purposes of a report, I need to add the
letter C in front of these numbers. I do not want to update the
fields permanently, as there are other circumstances where I do not
want C to display. I tried "C"& ""&[CaseID], and variations thereof,
but none of them work. I know this must be simple, but I can't seem
to figure it out.


If the report is the thing that needs the C in front, the I
think you should add it by using an expression in the report
text box:
="C" & [the text field]

--
Marsh
MVP [MS Access]
  #2  
Old June 7th, 2010, 03:27 PM posted to microsoft.public.access.queries
Twimm
external usenet poster
 
Posts: 2
Default Add character to string

I have a simple query that pulls data from a single table containing
some basic client information. One field is a text field containing
alpha-numeric data. For purposes of a report, I need to add the
letter C in front of these numbers. I do not want to update the
fields permanently, as there are other circumstances where I do not
want C to display. I tried "C"& ""&[CaseID], and variations thereof,
but none of them work. I know this must be simple, but I can't seem
to figure it out. Any help would be appreciated.
  #3  
Old June 7th, 2010, 03:46 PM posted to microsoft.public.access.queries
vanderghast
external usenet poster
 
Posts: 593
Default Add character to string

It should be

= "C" & [CaseID]


***but*** be sure that the control NAME is not left to CaseID, because if
its name is left to CaseID, there will be an error (CaseID of the field
won't be the same as CaseID of the report control anymore). So, be sure to
rename the control on the report to something else than an existing field.


Vanderghast, Access MVP


"Twimm" wrote in message
...
I have a simple query that pulls data from a single table containing
some basic client information. One field is a text field containing
alpha-numeric data. For purposes of a report, I need to add the
letter C in front of these numbers. I do not want to update the
fields permanently, as there are other circumstances where I do not
want C to display. I tried "C"& ""&[CaseID], and variations thereof,
but none of them work. I know this must be simple, but I can't seem
to figure it out. Any help would be appreciated.


  #4  
Old June 7th, 2010, 04:04 PM posted to microsoft.public.access.queries
Twimm
external usenet poster
 
Posts: 2
Default Add character to string

On Jun 7, 10:46*am, "vanderghast" vanderghast@com wrote:
It should be

= "C" & [CaseID]

***but*** be sure that the control NAME is not left to CaseID, because if
its name is left to CaseID, there will be an error (CaseID of the field
won't be the same as CaseID of the report control anymore). So, be sure to
rename the control on the report to something else than an existing field..

Vanderghast, Access MVP

"Twimm" wrote in message

...



I have a simple query that pulls data from a single table containing
some basic client information. *One field is a text field containing
alpha-numeric data. *For purposes of a report, I need to add the
letter C in front of these numbers. *I do not want to update the
fields permanently, as there are other circumstances where I do not
want C to display. *I tried "C"& ""&[CaseID], and variations thereof,
but none of them work. *I know this must be simple, but I can't seem
to figure it out. *Any help would be appreciated.- Hide quoted text -


- Show quoted text -

Ah...I see. Do it in the report instead of the query. So simple, yet
it didn't even occur to me. Thank you!
 




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 05:42 PM.


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