It's exactly the same, except that the whole expression has to go inside
quotes.
Since the expression contains quote marks, you have to double those up.
Here's an explanation:
Quotation marks within quotes
at:
http://allenbrowne.com/casu-17.html
Hopefully that makes sense of the example I posted originally.
Hi Allen, thx for the quick response.
I hope that you can be patient with me cos I am just learning how to
use access.
Here is a typical entry from the ControlSource of one of my text boxes
(there are about 40 on the form).
=IIf(DLookUp("[NEWNET]","04a Summary","[DIVISION] = 'S' And
[REP]='PH'")
Is Null,0,(DLookUp("[NEWNET]","04a Summary","[DIVISION] = 'S' And
[REP]='PH'")))
I am not sure how I would modify it with "Me.Text0.ControlSource ="
There's not a setting for this.
You would need to save the text boxes as unbound (i.e. delete
everything in the Control Source property), and then assign the
expressions programmatically at the point you want them to start
calculating, e.g.:
Me.Text0.ControlSource = "=DLookup(""MyField"", ""MyTable"")"
Hi, I have a form (Access 2007) with a lot of calculations. Everytime
I load the form it starts to calculate all the values.
Is there a way to turn of this feature so taht I can calculate the
values manually with F9.