PC Review


Reply
Thread Tools Rate Thread

Add character to string

 
 
Twimm
Guest
Posts: n/a
 
      7th Jun 2010
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.
 
Reply With Quote
 
 
 
 
vanderghast
Guest
Posts: n/a
 
      7th Jun 2010
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" <(E-Mail Removed)> wrote in message
news:4b52f429-853a-4f33-9a7a-(E-Mail Removed)...
>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.


 
Reply With Quote
 
Twimm
Guest
Posts: n/a
 
      7th Jun 2010
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" <twin...@yahoo.com> wrote in message
>
> news:4b52f429-853a-4f33-9a7a-(E-Mail Removed)...
>
>
>
> >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!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing a character in a string with another character =?Utf-8?B?Y2hlcm1hbg==?= Microsoft Access VBA Modules 3 2nd Aug 2007 09:54 PM
Stepping through each character in a character string =?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?= Microsoft Excel Programming 3 6th Jun 2007 06:23 PM
Re: Excel-Match 1st text character in a string to a known character? vezerid Microsoft Excel Worksheet Functions 0 15th Jan 2007 06:31 PM
getting the character code of a character in a string Velvet Microsoft ASP .NET 9 19th Jan 2006 09:27 PM
Function to return Character Position of Xth character within a string Andibevan Microsoft Excel Programming 4 9th Jun 2005 03:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:32 PM.