View Full Version : I need to add a text to a number field


bowes884
07-14-2005, 05:38 AM
I'd like to take a branch number field, let's assume it is "223" and change it to "223 No Com". Is there a way to add the "No Com" on the end of it like that?

ColinEssex
07-14-2005, 05:46 AM
Have the text in a separate field and concatonate it later in a query.

Col

NoFrills
07-14-2005, 05:50 AM
Off hand, I have to say No. If you have it set up as a Number field, then numbers are all you are allowed to enter. I could be wrong, just given my opinion as I do not know of a way to do that. I am sure that are work arounds for it.

Do you use this field for any calculations? I often use text fields in replace of number fields because I know the field is there for visual reasons and no calculations are needed on it. Does this field have to be a number field ?

bowes884
07-14-2005, 06:01 AM
What if its a text field, how would I add the "No Com" on the end of all teh 223s?

ColinEssex
07-14-2005, 06:03 AM
Update query

Col

ScottGem
07-14-2005, 07:59 AM
I'd like to take a branch number field, let's assume it is "223" and change it to "223 No Com". Is there a way to add the "No Com" on the end of it like that?

The real issue here is whether branch number an the text you want to add are already part of your record. If they are they you do NOT want to store the value in a separate field. You can concatenate them for display whenever you need to with the expression:

=[BranchNum] & [textfield]

If the text is a constant that will never vary then use:

=[BranchNum] & " No Com"