Hi Saint
Yes, you do this with a calculated field (or calculated control).
Basically, what this means is that the value in the field (or control) is
calculated from an expression involving other data. This could be a simple
arithmetic or string expression or something more complex.
You create a calculated field in a query and a calculated control in a
form.
In a query, add the table(s) containing the fields you require, then add
the fields to the query grid. To make the calculated field, enter in a
blank field cell:
FieldName: Expression
(for example)
SpeedStatement: [texta] & " are faster than " & [textb]
Note that the & sign joins strings together, just like the + sign adds
numbers. This expression joins three strings. The middle one is called a
"literal string". Note that it is enclosed in quotes and also that it
includes spaces at either end (otherwise you would get "Rabbitsare faster
thanCows").
You can then bind your query to a form or report and use the field named
"SpeedStatement" just as you would use another field (except that it's not
editable).
You can also do the calculation directly in a form or report. Bind the
form/report to your table and add a textbox to it with the ControlSource:
=[texta] & " are faster than " & [textb]
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
The Boondock Saint said:
Is there a way you can have a text field = other fields
something like
texta = Rabbits
textb = Cows
text1 = "[texta] "are faster than" [textb]"
so that it shows
text1 = Rabbits are faster than Cows
Using Office 2000
Thanks for your help,
The Saint