Adding strings together

jobro

Registered User.
Local time
Today, 00:28
Joined
Nov 3, 2007
Messages
21
So I need to know this. How do I:

*Add 2 text fields together with a space between?
*Truncating field 1 to the first character and field 2 to the two first characters?


Sorry for my noob questions :D
 
So I need to know this. How do I:

*Add 2 text fields together with a space between?
*Truncating field 1 to the first character and field 2 to the two first characters?


Sorry for my noob questions :D

field1 & " " & field2

Left(field1,1) Left(field2,2)
 
Care to explain a bit further? Because when I do this then all I get is #Error when I'm trying to print it in a report.
 
If you want your field in a report you need to add it to the controlsource like this:

=Left([Field1InBrackets],1) & " " & Left([Field2InBrackets],2)
 
Ok so here is my control source as it is now:

=[Förnamn] & " " & [Efternamn]

just to simplify the process. Giving this control source gives me an error while giving another reference to another field gives me the result.
 
Ok so here is my control source as it is now:

=[Förnamn] & " " & [Efternamn]

just to simplify the process. Giving this control source gives me an error while giving another reference to another field gives me the result.


Are Förnamn and Efternamn both fields in the underlying data source?
 
Also, check to see that the field name and the text box that is bound to each of those are not the same. When using calculations in controls (or concatenations), you will run into errors if they are the same.
 

Users who are viewing this thread

Back
Top Bottom