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. |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
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! |
#4
|
|||
|
|||
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] |
Thread Tools | |
Display Modes | |
|
|