jobro
11-03-2007, 04:07 AM
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
Friday
11-03-2007, 05:34 AM
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)
jobro
11-04-2007, 03:59 AM
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.
boblarson
11-04-2007, 08:36 AM
If you want your field in a report you need to add it to the controlsource like this:
=Left([Field1InBrackets],1) & " " & Left([Field2InBrackets],2)
jobro
11-04-2007, 03:52 PM
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.
Friday
11-06-2007, 06:32 AM
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?
boblarson
11-06-2007, 08:02 AM
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.